Categories

Attribute Multiple Selector [attributeFilter1][attributeFilter2][attributeFilterN]

Categories: Attribute

jQuery('[attributeFilter1][attributeFilter2][attributeFilterN]')

Description: Matches elements that match all of the specified attribute filters.

  • jQuery('[attributeFilter1][attributeFilter2][attributeFilterN]')

    version added: 1.0

    attributeFilter1   An attribute filter.

    attributeFilter2   Another attribute filter, reducing the selection even more

    attributeFilterN   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.

    HTML:
    <input id="man-news" name="man-news" />
    
      <input name="milkman" />
      <input id="letterman" name="new-letterman" />
      <input name="newmilk" />
    Code:
    $('input[id][name$="man"]').val('only this one');