if (Drupal.jsEnabled)
$(function () {
// add trigger to the button
$('input#edit-ignore-node').click(function () {
// change button label
$(this).attr('value', 'Other label');
// get nid value
nid = $('#id').val();
// use ajax to run a menu_path callback
$.get(Drupal.settings.basePath + 'readpath/ignore/'+nid);
// it will abort button submit
return false;
});
});