jQuery [ชื่อ = "ค่า"] [name2 = "VALUE2"] ตัวเลือก
ตัวอย่าง
การค้นพบที่มีคุณสมบัติผ่านคอมโพสิตเลือกกล่องใส่และการตั้งค่า
<input id = "คนข่าว" name = "คนข่าว" / > <input name = "นม" /> < การป้อนข้อมูล id = "เล็ต" name = "ใหม่เล็ต" / > <input name = "newmilk" /> < script> $ (ฟังก์ชั่น () {$ ( "ป้อน [ID] [$ name = 'ชาย']" ). วาล ( "เพียงแค่นี้กล่องใส่" );}) </ script>
ลอง»
ความหมายและการใช้งาน
[ชื่อ = "ค่า"] [name2 = "VALUE2"] เป็นแอตทริบิวต์เตอร์คอมโพสิตใช้ต้องเป็นไปตามเงื่อนไขหลาย
ไวยากรณ์
$( "[attributeFilter1][attributeFilter2][attributeFilterN]" )
参数 | 描述 |
---|---|
attributeFilter1 | Selector类型 属性选择器 |
attributeFilter2 | Selector类型 另一个属性选择器,用以进一步缩小范围 |
attributeFilterN | Selector类型 任意多个属性选择器 |