jQuery Find any element that contain data attribute -


I want to get value from data-supported , I do not know where this feature will be It is possible.

It could be on ul , or select or even div

Do I find any element with data-supported and return its value to jQuery?

I do not think this is correct

  dataSupported = $ ('* [Data Supported]');    

$ ('* [data-supported]') Return all elements that have data-supported features .... If you want the value of the attribute,

  var data is supported = $ ('* [Data-Supported]'). ('Supported')    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -