728x90
SMALL

jQuery 35

[jQuery] jQuery / Selector / :nth-child() - Selector that selects the an+bth sibling element

#jQuery #:nth-child() :nth-child() :nth-child() is a selector that selects the an+bth sibling element. grammar $( ':nth-child(an+b)' ) a and b are constants, n is a variable. Non-negative integers (0, 1, 2, 3, ...) are assigned to n in sequence. You can use even, odd instead of an+b. example $( 'ol li:nth-child(2)' ) Selects the second element from the sibling elements of li, which is a child el..

jQuery 2022.08.02

[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] jQuery / jQuery.noConflict () / Prevent conflicts with other libraries, different versions of jQuery

#jQuery Using jQuery may conflict with other libraries. There are two causes of collision. 1.Conflict with other libraries 2.Conflicts with other versions of jQuery Let's see how we can prevent collisions in each case. Conflict with other libraries jQuery uses $ as an alias for jQuery. However, if you use $ as a function or variable in other libraries, jQuery may not work properly. The way to pr..

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