Get the App
SLTechnology News&Howtos  ›  Development  › 

How jQuery makes the entire list element clickable

Shulou Source: shulou.com Published: 2022-06-01 05:11:49 11月13日 Update

This article mainly introduces how jQuery makes the entire list elements clickable, with a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

Make the entire list element (LI) clickable

$("ul li") .click (function () {_ window.location=$ (this) .find ("a") .attr ("href"); return false;}) GBin1 Link 1GBin1 Link 2GBin1 Link 3GBin1 Link 4 Thank you for reading this article carefully. I hope the article "how jQuery makes the whole list elements clickable" shared by the editor will be helpful to you. At the same time, I hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Articles elements values interests at the same time more friends knowledge editing industry information information channels channels reference learning help support Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Docker Microsoft MariaDB NVidia