javascript - confirmation message is not firing a href onclick -
below part of javascript code. confirmation message not firing.
function pkid_delete_formatter(cellvalue, options, rowobject) { return '<a href="jqgridclients/delete?id=' + cellvalue + '" onclick="return confirm("are sure want delete?");" class="ui-icon ui-icon-trash"></a>'; }
i think above code enough, please let me know if more code needed
use this:
return '<a href="jqgridclients/delete?id=' + cellvalue + '" onclick="return confirm(\'are sure want delete?\');" class="ui-icon ui-icon-trash"></a>';
it inserts proper quotes confirm
.
Comments
Post a Comment