WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

jQuery :root Selector

jQuery Selectors jQuery Selectors

Example

Set the background color for the HTML document to yellow:

$(":root").css("background-color", "yellow");
Try it yourself »

Definition and Usage

The :root selector selects the document's root element.

In HTML, the root element is always the <html> element.


Syntax

$(":root")

jQuery Selectors jQuery Selectors




Welookups is optimized for learning.Copy right 2018 kumar aditya singh .
All Right Reserved and you agree to have read and accepted our term and condition.
All Rights Reserved..

welookups.com