Is it possible to have an action listener on a <li> tag in html and pass it as a parameter in javascript?
Is it possible to set an action listener for a <li> tag in html and pass what the user clicked in JavaScript? Index.html: <div class="dropdown"> <button class="btn d-flex align-items-center" type="button"> <h3 class="fs-1 fw-bold">Set Limit</h3> </button> <ul class="dropdown-menu"> <li>1</li> <li>2</li> <li>3</li>…