javascript - How would I get an ID from a response like this? -
here response in question:
object { 0: <li#gen_kw_select_77080.actions-list__option.j-selected.j-focused>, context: <li#gen_kw_select_77080.actions-list__option.j-selected.j-focused>, length: 1 }
and here code generates it:
function doaction (items) { items.each(function(index, el) { var $el = $(el); console.log($el); $el.addclass('animate'); settimeout(function() { $el.removeclass('animate'); }, 300); }); }
i highly appreciate responses here. should mention i'm using selectonic plugin.
Comments
Post a Comment