Closed lsw0529 closed 10 years ago
@lsw0529 To access those fields, use jQuery's data
method:
var target = $('selector').data('autotab-target')
var previous = $('selector').data('autotab-previous')
In one of the previous Autotab releases, I was using setAttribute
and getAttribute
, but I failed to realize that I couldn't store anything as the attribute's value. I changed it back to use data
, but separately for each setting because it already covers the logic necessary to support any type of object.
jQuery Autotab support "data-autotab-format" data attribute on HTML element, is possible to add a new feature like "data-autotab-target" or "data-autotab-previous" data attribute
thanks !