当前位置:网站首页>JQ获取对象的几种方式

JQ获取对象的几种方式

2022-06-25 23:55:00 犹娅饲养员

if ($(this).eq(0).attr('id') == 'ConsigneeTel')   判断当前的对象的ID是否等于ConsigneeTel 

 var id = $(this).index(".jsfocus");  获取类名含JSFOCUS的对象的序号

  $('select[id="CarrierType"]').next().find('.layui-select-title input')     获取ID/name/Class为CarrierType的对象的下的类名含  layui-select-title input的对象

原网站

版权声明
本文为[犹娅饲养员]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_41812381/article/details/115629295