Multiple Attribute Selector [name="value"][name2="value2"]
Matches elements that match all of the specified attribute filters.
.attributeMultiple(attributeFilter1, attributeFilter2, attributeFilterN)
attributeFilter1
| Selector | An attribute filter. |
attributeFilter2
| Selector | Another attribute filter, reducing the selection even more |
attributeFilterN
| Selector | As many more attribute filters as necessary |
Finds all inputs that have an id attribute and whose name attribute ends with man and sets the value.
JS
<input id="man-news" name="man-news" />
<input name="milkman" />
<input id="letterman" name="new-letterman" />
<input name="newmilk" />
HTML
$("input[id][name$='man']").val("only this one");
DEMO