728x90
SMALL

Selector 15

[jQuery] jQuery / Selector /: contains ()-Selector that selects elements that contain a specific string

#jQuery :contains() : contains () is a selector that selects elements that contain a particular string. grammar $( ':contains(text)' ) Keep in mind that it is case sensitive when choosing whether to include strings. for example $( 'p:contains("ab")' ) Select the p element that contains the ab string. example Lorem ipsum dolor sit amet. Aenean nec mollis jb nulla. Phasellus JB lacinia tempus maur..

jQuery 2022.07.28

[jQuery] Method / .not ()-Method to select elements other than a specific selector from the selected elements

jQuery .not() .not () selects the selected elements except for a specific selector. grammar .not( selector ) for example $( 'p' ).not( 'p.abc' ).css( 'color', 'green'); Select one that does not have abc in the p element as a class value. example Clicking the button replaces the contents of the li element, which does not have ip as a class value, in red. Click Lorem Ipsum Dolor

jQuery 2022.07.27
728x90
LIST