Thursday, April 21, 2011

problem in hide and show of combobox in struts2

i have a jsp page in which i have two combobox and one radio button of struts tag. now depending on the value of radio button i have to hide one combobox . how can i achieve this in struts2. i can easily do if this tag are simple html by hiding a div tag. but struts tag are not hide by this jquery.

From stackoverflow
  • are you trying to hide it by struts2? or by jquery? Cause this would be totally different

    In case you are trying to hide from struts2 - use <s:if> tag - just check the value of radio button, and either render or not.

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


Post a Comment