I have a page with a set of elements.
I would like my dropdownlist1 to create new textbox under another specific element.
For example, if I have (from top to bottom):
- Label1
- dropdownlist1
- textbox1
- dropdownlist2
- label2
I would like my dropdownlist1 to create textbox2 under dropdownlist2 when user selects some item in the dropdownlist1.
How can I accomplish this?
Try to give your texbox2 initially display="none" property in CSS and place it where you want. Then create method, which will set it CSS property to for example 'inline-block' after assigning non-default value to variable which dropdownlist1 will set.