Skip to content

Instantly share code, notes, and snippets.

@dodozhang21
Created March 3, 2011 01:38
Show Gist options
  • Save dodozhang21/852156 to your computer and use it in GitHub Desktop.
Save dodozhang21/852156 to your computer and use it in GitHub Desktop.
deleteConfirmation - delete action links bind
$('a.deleteConfirmation').click(function() {
var name = $(this).parent().parent().children('td.name').html(); // a.delete -> td -> tr -> td.name
name = jQuery.trim(name);
$("#jQueryDeleteConfirmationModalWindow").html('Are you sure you wish to delete ' + name + '?');
$("#jQueryDeleteConfirmationModalWindow").dialog('open');
return false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment