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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -