ASP.NET and JQuery - Popup for dropdownlist selected value -


what i'm looking popup "are sure" confirmation box if newly selected value of dropdownlist value before submit form.

<select name="listsearchtype" id="listsearchtype">     <option value="c">closed</option>     <option value="o">open</option>     <option value="p">pending</option> </select> 

so if had dropdownlist above autopostback enabled, i'd want popup confirmation box if user select 'closed' before form submitted.

$("#listsearchtype").onchange(function() {     if ($(this).val() == "c") {        var confirmed = confirm("are sure ?");        if (!confirmed) {           return false;        }     } }); 

Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -