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 .
.
Surprised no one mentioned:
Mazda Honda Mercedes Toyota $("#selectVehicle").change(function () { alert($(this).find(':selected').data("year")); });
Here is the working example: https://jsfiddle.net/ed5axgvk/1/