javascript - How to grab text from a ul li Item? -
I have a list and want to run a search on them, this list populates a ddSlick drop down box item DdSlick is a good way to add photos to the list ) .each (function (i, items_list) {$ (items_list) .find ('li'). Li) {//alert(li.TextContent}; var text = li.TextContent;})}); When I observe the element and look at the text, then it is not clear, but if I inspect Li, then it shows that the text content is present. How can someone catch me this lesson? this (small but for jQuery use $ ("#txtSearch"). (Function () (.f ((function () {$ ('# marquee etams')
t )
Var text = li.textContent;
var text = $ (li) .text ();
Comments
Post a Comment