I\'m using the jQuery quicksand plugin. I need to get the data-id of the clicked item and pass it to a webservice. How do I get the data-id attribute? I\'m using the .
.
I have a span. I want to take the value of attribute data-txt-lang, which is used defined.
$(document).ready(function () { EN alert($('.txt-lang-btn').attr('data-txt-lang')); });