Problem in hiding and showing combobox in struts2

I have a jsp page where I have two combo boxes and one struts tag radio button. Now, depending on the value of the radio button, I need to hide one combo box. How can I achieve this in struts2. I can easily do if this tag is plain HTML by hiding the div tag. But the struts tag is not hidden by this jquery.

0


a source to share


1 answer


Are you trying to hide this struts2? or jquery? Because it would be completely different.

In case you are trying to hide from struts2 - use a tag <s:if>

- just check the toggle value and either render or not.



In the case of jquery, all you have to do is find the id of the html element, something like ($idToHide).hide();

0


a source







All Articles