JQuery常用操作使用手册

1.jQuery获取某个radio的值

$("input[name='radio1']:checked").val();

2.jQuery获取checkBox的布尔值

$('#checkBackRow_1').prop('checked')

3.jQuery取值

val()

4.JQuery获取td下input的值

$("table tr").children("td:eq(0)").find("input").val();

5.JQuery获取dom元素某个属性的值

$("input[name='backway']:checked").attr('title');

 

posted @ 2022-05-05 16:58  qx和世界  阅读(64)  评论(0)    收藏  举报