I set data-attribute with following:
jQuery('.question').data('status', status_value); // status_value can be wrong or correct
Now I have two lines going one after another
jQuery('.question').data('status') // returns value wrong or correct, e.g. data-attribute 'status' exists and filled with value
jQuery(".question[status='wrong']") // returns undefined
Why the shortened syntax doesn't work?
My task is to get the element which has data-attribute value as "wrong"