i have a combo box what i want is whenever a new option from combo box is selected new form is loaded below the combo box with out refreshing the page can some one provide the script
A:
Yes download the jQuery and you can simpley do with jQuery/Ajax.
<select onChange="$('#formDiv').load(this.options[this.selectedIndex].value)">
<option value="/pages/form1.html">form1</option>
<option value="/pages/form2.html">form2</option>
</select>
<div id="formDiv"></div>
This is basic structure I gave, You can enhance it to work it in more secure way.
Muneer
2010-07-01 08:31:34
i m quite new to jquery can you tell me which files i need to download plz
2010-07-01 08:35:14
Go to this page http://jquery.com/ and download it, then add it in your page.
Muneer
2010-07-01 08:42:20
it was very easy thanks a lot yar
2010-07-01 09:04:36
Good luck. You can do more stuff with jQuery. Follow a jQuery tutorial online. :)
Muneer
2010-07-01 09:29:10