SyntaxFix
Write A Post
Hire A Developer
Questions
This worked for me, in my case I had a button with a data-id attribute:
$("a").data("item-id");
Fiddle