Horje
cancel drop down list onchange event javascript Code Example
cancel drop down list onchange event javascript
$("#country").change(function() {
  var newVal = $(this).val();
  if (!confirm("Are you sure you wish to destroy these country branches?")) {
    $(this).val($.data(this, 'val')); //set back
    return;                           //abort!
  }
  //destroy branches
  $.data(this, 'val', newVal);        //store new value for next time
});




Javascript

Related
pass data from popup js Code Example pass data from popup js Code Example
Regular Expressions: Find More Than the First Match Code Example Regular Expressions: Find More Than the First Match Code Example
How to check for the properties of an element in the console Code Example How to check for the properties of an element in the console Code Example
Render raw html in response with Express Code Example Render raw html in response with Express Code Example
javascript events reference Code Example javascript events reference Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9