jQuery Tutorial Tutorials - jQuery :root selector

:root selector

The jQuery :root selector is used to select the element that is the root of the document. It is always the <html> element in HTML.

jQuery :root selector Syntax

$(':root')

jQuery :root selector Examples

Following is a simple example which would display the tage name of the root element:
Try now

Date:2019-08-18 02:17:28 From:www.Lautturi.com author:Lautturi