I have a CSS id #cross-reference-section-value set to display: none. It hides the label field in the HTML. I have JavaScript code to select the value and store it into the the hidden element like this:
var generic_lookup_Enr_Rds_Section2009_selected = function(id, to_s) {
$("#cross-reference-section-value").text(id + " " + to_s);
$("#modal_popup").dialog("destroy");
};
Now I want to enable or remove that attribute of display: none using JavaScript to make it visible to display the value. And one more thing is I have selected the id and string value. Is it possible to display only the string not the id? But the id should be hidden. Because I am calculating the other fields through this id. So, I just want to hide this id and show the string. Thanks
You can try
$("#cross-reference-section-value").show()or something like$("#cross-reference-section-value").css('display', 'block').I don’t think you can just show the string though, seems like this is extra logic that needs to be added in the js code.