get the value of any clicked td jquery

后端 未结 2 1736
广开言路
广开言路 2021-01-29 10:46

im traying to get the value of any clicked td and show this in a alert() window with jquery or javascript. I was trayin alote of code around the internet \"googling\" but anyone

2条回答
  •  长发绾君心
    2021-01-29 11:15

    You need to include jQuery library to start working with it. Then just bind a click event to your td and you should see the alert pop up.

    
       
    
    
       
    
    id Nombre
    1 miguel

提交回复
热议问题