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

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c# - Setting Server Bindings of IIS 6.0 Programmatically -

Python + DNS : Cannot get RRSIG records: No Answer -