I need to get the longdesc from an image.
I have tried:
$(this).prop('longdesc');
but it returns undefined.
I need to get the longdesc from an image.
I have tried:
$(this).prop('longdesc');
but it returns undefined.
You can use data-*
attributes, and get the data using .data()