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

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -