jQuery [name = "value"] [name2 = "value2"] selector
Examples
Finding qualified through the composite input box selector and set the value.
<Input id = "man-news" name = "man-news" / > <input name = "milkman" /> < input id = "letterman" name = "new-letterman" / > <input name = "newmilk" /> < script> $ (function () {$ ( "Input [id] [name $ = 'man']" ). Val ( "Only this input box" );}) </ Script>
try it"
Definition and Usage
[Name = "value"] [name2 = "value2"] is a composite attribute selectors, use need to meet several conditions.
grammar
$( "[attributeFilter1][attributeFilter2][attributeFilterN]" )
参数 | 描述 |
---|---|
attributeFilter1 | Selector类型 属性选择器 |
attributeFilter2 | Selector类型 另一个属性选择器,用以进一步缩小范围 |
attributeFilterN | Selector类型 任意多个属性选择器 |