많이 사용하는 jQuery Selector
JavaScript 2010. 6. 17. 01:22 |
$("#TestForm > input[name='TestText']").val();
$("#TestForm > input:radio[name="TestRadio"]:checked").val();// 결과: 1
$("#TestForm > input[name="TestRadio"]:checked").val();// 결과: 1
$("#TestForm > input[name^='TypeA']");
$("#TestForm > input[name$='Desc_1']");
$("#TestForm > input[name*='Desc']");
$("#TestForm > input[name!='TypeA']");
$(":input:radio[name=sample]:checked").val()
$("input[@name=test][@checked]").val()
$("#select_box > option:selected").val();
$("#select_box > option[@value=지정값]").attr("selected", "true")
$(this).parents(".parentTable").find(".targetEl").text("hello?");
$("input[type=text]:not(:first-child)").css({width: "95%"})
'JavaScript' 카테고리의 다른 글
정규식 (0) | 2010.07.26 |
---|---|
Ajax 뒤로가기 구현 (3) | 2010.07.26 |
image resize(비율유지) (0) | 2010.07.04 |
Email체크(jQuery UI에서 발췌) (0) | 2010.06.22 |
with (0) | 2010.06.07 |