JQuery - add click event to LI or SPAN elements?

前端 未结 4 1488
名媛妹妹
名媛妹妹 2021-02-08 23:00

I am trying to add a click event to a LI element but it is not firing in the page. My page markup looks like:

4条回答
  •  南旧
    南旧 (楼主)
    2021-02-09 00:05

    I had a similar problem where I was using a popup list that the user selected. Basically the user clicks an input box and a ul is revealed.

    This worked great with a 500ms animation, but when switching to 250ms the scrolling down animation was too fast and apparently the click event never fired on a li.

提交回复
热议问题