4.first-of-type£¬last-of-type
ËùÓÐËùÓÐÆ¥Åä±êÇ©µÄµÚÒ»¸ö£¬×îºóÒ»¸ö£¬ºÍΨһһ¸ö
1.£ºinput
<input type="file" /> <input type="hidden" /> <input type="image" /> $(":input");//<input type="file" />,<input type="hidden" />,<input type="image" />2.ÆäËûµÄ¾ÍºÜ¼òµ¥ÁË£¬ÊÇÄĸöÑ¡ÔñÆ÷¾Í¶ÔÓ¦µÄÑ¡Ôñ±êÇ©¾Í¿ÉÒÔÁË£¬ÏÂÃæÒÔµ¥Ñ¡¿òºÍ¸´Ñ¡¿ò´ò±È·½¡£
£ºradio£¬£ºcheckbox
1.:enabled,:disabled
Æ¥ÅäËùÓпÉÓõIJ»¿ÉÓõÄÔªËØ
2.:checked£¬µ¥¸´Ñ¡¿òµÄÑ¡ÖУ¬selectµÄoption±»Ñ¡ÖÐ
===> </select> $("input:checked");//="checked" /> $("option:checked");//<option checked="checked">1</option>3.:selected£ºÆ¥ÅäËùÓб»Ñ¡ÖеÄoptionÔªËØ
=="checked">3</option> </select> $("select option:selected");//="checked">3</option>
¡¡