Explore 100's Of Free Video Tutorials

Keep Learning, Keep Coding & Keep Sharing

jQuery tag selector


jQuery tag selector :

To select html element(s) by their tag name, we use jQuery tag selector

Syntax of jQuery tag selector:
$(“CSS tag selector”).action(parameters);
If we use CSS tag selector in a jQuery function then it is called as jQuery tag selector

$("p").css( {"border":"2px solid red"} );
It selects any HTML element whose tag name is set to “p” and applies the border of 2px solid red.

Interview Questions: