如何使用jquery知道包含图像的html表格的单元格? [英] How to know the cell of html table containing image or not using jquery?

查看:70
本文介绍了如何使用jquery知道包含图像的html表格的单元格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



请帮助我新手jquery ....

Hi,
Please help me Im new to jquery....

推荐答案

http://api.jquery.com/category/selectors/ [ ^ ]解释了使用jQuery选择元素的所有选项...

对于你的情况
http://api.jquery.com/category/selectors/[^] explains all the options to select elements with jQuery...
For your case


(td img)将选择 img 元素> td 元素,页面中的任何位置......
("td img") will select all the img elements that are inside a td element, anywhere in your page...


这篇关于如何使用jquery知道包含图像的html表格的单元格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆