I'm having a jqgrid. With each row has a link for delete.
On click of the delete link, want the custom attribute I've set.
custom attribute is the primary key for row item.
On click of the URL, that particular item will be deleted from the database, and grid.
Example:
Code: Select all
<a href="#" del_val="9" onclick=delete_pipeline()>Delete</a>
Code: Select all
$val=$(this).data('del_val'); //--data
alert($val); //undefined
$val=$(this).attr('del_val'); //--attr
alert($val); //undefined
Code: Select all
<a href="#" "del_val"="5" onclick=delete_pipeline()>Delete</a>
How do I fix it?
Thanks.