jQuery Selector - by Attribute

매번 구글링하기 귀찮아서 기억할 겸 포스팅

  • Attribute Contains Prefix Selector [name|="value"]

    value either equal to a given string

    starting with that string followed by a hyphen (-)

  • Attribute Contains Selector [name*="value"]

    value 값을 포함

  • Attribute Contains Word Selector [name~="value"]

    value 단어를 포함. (공백으로 나눔

  • Attribute Ends With Selector [name$="value"]

    value 값으로 끝남

  • Attribute Equals Selector [name="value"]
  • Attribute Not Equal Selector [name!="value"]
  • Attribute Starts With Selector [name^="value"]

    value 값으로 시작


Leave Comments