just for the sake of an answer:
Use attr()
instead of prop()
Вопрос
I need to get the longdesc from an image.
I have tried:
$(this).prop('longdesc');
but it returns undefined.
Решение
just for the sake of an answer:
Use attr()
instead of prop()
Другие советы
You can use data-*
attributes, and get the data using .data()