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

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -