Click here to Skip to main content
15,921,530 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,

How to reload page on selecting or changing the item from dropdownlist using Jquery
Posted

1 solution

Suppose your dropdown markup goes like below
XML
<select id="dropDownId">
    <option></option>
    <option></option>
    <option></option>
    <option></option>
    <option></option>
</select>


JQuery code to reload page on change of dropdown will go like below

JavaScript
$(document).ready(function(){
   $("#dropDownId").change(function(){
      window.location.reload(true);
   });
});
 
Share this answer
 
v2
Comments
PRAKASH_N 21-Aug-13 2:36am    
it is working for only TextBoxes but not for Dropdownlists
Jitendra Sabat 21-Aug-13 2:54am    
But it's working in my demo.Do check your code properly.

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