













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














Element Selector $(‘elementname’) ID selector $(‘#id’) Class selector $(.class) Attribute selector Attribute name - $(‘attributename+’) Attribute value - $(‘attributename+=“value”’)
6 Source : https://www.tutorialsteacher.com/jquery/jquery-selectors
7 Source : https://www.tutorialsteacher.com/jquery/jquery-selectors
append() appends content at the end of element(s) that is mentioned by a selector. before() adds content (new or existing DOM elements) before an element(s) that is mentioned by a selector. after() Inserts content (new or existing DOM elements) after an element(s) that is mentioned by a selector. prepend() Insert content at the beginning of an element(s) that is mentioned a selector. remove() removes element(s) from DOM that is mentioned by selector. text() Get or set text content of the selected element(s)
attr()
prop()
html()
text()
val()