Quantcast
Channel: Editor — DataTables forums
Viewing all articles
Browse latest Browse all 3740

Editor 1.6.2 - select options

$
0
0

Hi Allan

I noticed you've put the ability to add attributes to the inputs in 1.6.2: "Ability to provide attributes for input / option elements in select, checkbox and radio field types. This can be used to provide additional meta information for each option for event handlers. These attributes are added by providing an attr option in the object that describes each option.".

Can you give an example of how I would add a global data attribute (data-*) to select <option>s?

Thanks in advance


Viewing all articles
Browse latest Browse all 3740