Click here to Skip to main content
15,880,608 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to show data in dropdownlist on changing the first dropdownchanged event using javascript.
plz help me?
Posted

 
Share this answer
 
Comments
CoderPanda 5-Mar-14 4:06am    
Good answer, +5 from me.
Visit the below link, Hope it will help you.
http://stackoverflow.com/questions/9800310/add-event-handler-to-html-element-using-javascript

In jQuery, you can do like this:

C#
$("#Select1").one("change", function () {
          alert("This will be displayed only once.");
      });
 
Share this answer
 
If I am not wrong then you need to show data in one drop down list according to data selected in some other Drop Down List, for e.g. If I select country "India" from Country Drop Down List then you need to show all the states of "India" in second Drop down, and if I select "USA" then second Drop Down will show the states of USA!! Right!!! Correct me if I am wrong.
 
Share this answer
 
Comments
CoderPanda 5-Mar-14 3:48am    
I think you got the question right, but any clarification on the question should be sought as a question/comment right below the original questions itself. Not as a solution.
Hello,

Hope this nice little CP article[^] or this SO discussion[^] would help.

[Please accept/up-vote answers or solutions that work for you to encourage participation]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900