About 1,310,000 results
Open links in new tab
  1. javascript - Onclick event on list item - Stack Overflow

    The problem is that when an element other than a button is clicked, the selection in the textarea disappears. On way to fix this is to use onmousedown instead of onclick, since the …

  2. Handle Click Events using Event Delegation in JavaScript

    Mar 1, 2025 · Write a JavaScript function that uses event delegation to remove a list item when its embedded delete button is clicked. Improve this sample solution and post your code through …

  3. click event on list items - CodePen

    <p> Click on any item to increase the moves.2

  4. JavaScript DOM EventListener - W3Schools

    The addEventListener() method makes it easier to control how the event reacts to bubbling. When using the addEventListener() method, the JavaScript is separated from the HTML markup, for …

    Missing:

    • Item

    Must include:

  5. Improve Usability and CTR: Make an Entire List Item Clickable

    Larger clickable areas make for greater usability and a higher click-through rate. Here's how to expand a clickable area to an entire list item using jQuery.

  6. Selectable list - The Modern JavaScript Tutorial

    Create a list where elements are selectable, like in file-managers. A click on a list element selects only that element (adds the class .selected), deselects all others.

  7. javascript - How does one make the whole of a list item clickable ...

    Sep 3, 2012 · I have a list containing list items which appear like a row in a table (actually it mimics the table view on iPhone) and want to make each row of the list selectable, so I can …

  8. javascript - Expanding list on webpage - Code Review Stack Exchange

    May 4, 2016 · When an expander link is clicked, it hides that link, unhides one more item in the list, and unhides the next expander link. I'm wondering if it can tightened up.

  9. How to addEventListener to a list of html Elements in JavaScript

    Jul 14, 2022 · In order to fix this problem, all you need to do is convert the htmlCollection/nodeList into an array. This way you can make use of array methods on it, and also add your event …

  10. How to Create a Collapsible List of Items in HTML with JavaScript

    May 4, 2018 · In this article, you will see how to use a little bit of standard JavaScript to hide and display items in a list. Ordered and unordered lists are great targets for expanding and …

  11. Some results have been removed
Refresh