KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am designing a html page. I want to show a confirmation msg on changing a drop down element using jquery or javascript. Please help to do this. I have code which will ask confirmation. On selecting cancel it will not select previous item of Drop down. $("#dropdownId").change(function(e) { if($(this).val() == "40") { if(confirm("Are you sure")) return true; else return false; } }); Thanks
Tags (comma-separated)
Save Edits
Cancel