Selected Index Change event in JavaScript
-
Hi there, Sir, I want a code on selected index change event in javascript that will populate another ddl depending on selected value, hence to avoid server trip. Thanx.. :)
-
Hi there, Sir, I want a code on selected index change event in javascript that will populate another ddl depending on selected value, hence to avoid server trip. Thanx.. :)
Well, you'd need to either use AJAX, or send every possible list of data for the second drop down list down to the client every time.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Hi there, Sir, I want a code on selected index change event in javascript that will populate another ddl depending on selected value, hence to avoid server trip. Thanx.. :)
Use
OnChange="javascript:populateDdl();"
OnpopulateDdl
you can call server using AJAX, and parse the response and load it to thedropdown
or anything on your logic. :)Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Microsoft Bing MAP using Javascript
CLR objects in SQL Server 2005
Uncommon C# Keywords/xml> -
Hi there, Sir, I want a code on selected index change event in javascript that will populate another ddl depending on selected value, hence to avoid server trip. Thanx.. :)
use AJAX