:root
selectorThe jQuery :root
selector is used to select the element that is the root of the document. It is always the <html>
element in HTML.
:root
selector Syntax$(':root')
:root
selector ExamplesFollowing is a simple example which would display the tage name of the root element:
Try now