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 $ ("#txtSearch"). (Function () (.f ((function () {$ ('# marquee etams')

) .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.

Enter image details here

 Enter image details here

How can someone catch me this lesson?

this (small t )

  Var text = li.textContent;   

but for jQuery use

  var text = $ (li) .text ();    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -