1. Main
  2. Post
  3. Get The Li

Get The Li

Get The Li

I can solve the challenge, but i am unsatisfied with my solution. Googled for a while with no luck on the specific solution im looking for.

HTML li tag W3Schools

Get The Li

As pointed out in the comments, this approach wont work when the child of an li is clicked. To solve this, you would need to check to see if the parent element of the clicked element is the one that the click event is attached to.

When i lived in hong kong, i felt that hong kong is my family.

I am so happy because i want more people to like martial arts movie not just martial arts audience. Even martial arts can be used in comedy, in drama, in horror movies, in different kinds of movies.

If you have html inside the li elements and you only want to get the text, you need innertext or textcontent.

Well organized and easy to understand web building tutorials with lots of examples of how to use html, css, javascript, sql, php, python, bootstrap, java and xml.

Get The Li

Now i feel the world become a big family, like a really big family.

I spend more time learning about buddhism than english, which is why my english today is still bad.

javascript Get the text of an li element Stack Overflow

Well organized and easy to understand web building tutorials with lots of examples of how to use html, css, javascript, sql, php, python, bootstrap, java and xml.

Zhang yimou tried to use martial arts to talk about chinese culture, chinese people.

Get The Li