I have a menu of click of button 1 a struts form and fields will be created. On click of button 2 instead a different form and filed should be created. Should this be done using Jquery or any other way?
I tried doing this using Jquery using below code but it did not work.
I am trying this functionality: I have 2 buttons : click1,click2
If I click on Click1: In the same area only the contents of Div 'toggleText1' should be displayed.Rest should be hidden.
If I click on Click2: In the same area only the contents of Div 'toggleText2' should be displayed.Rest should be hidden.
To achieve this I tried the below but at a time more than 1 div is displaying(I want a single div to be displayed at a time not all,others should be hidden):
At a time only form 1 or form 2 should be displayed not both.
posted 6 years ago
The strategy I am using is: show one div(related to the menu selction) and hide each of other menu item. Then for other option click: show one div(related to the menu selction) and hide each of other menu items. Is this strategy fine?But is tedious ;is there any easier way I can do this(hiding each of other menu items is long process).
What a show! What atmosphere! What fun! What a tiny ad!
Two software engineers solve most of the world's problems in one K&R sized book