" + $("div").context + "

") .append("

" + $("div", document.body).context.nodeName + "

"); ``` --- ## Definition and"> " + $("div").context + "

") .append("

" + $("div", document.body).context.nodeName + "

"); ``` --- ## Definition and" />
Easy Tutorial
❮ Html Unwrap Misc Promise ❯

jQuery context Property

jQuery Properties

Example

Detect the context:

$("div").append("<p>" + $("div").context + "</p>")
.append("<p>" + $("div", document.body).context.nodeName + "</p>");

Definition and Usage

The context property contains the original context passed to jQuery, which could be a DOM node context. If no node is passed, it defaults to the document context.


Syntax


jQuery Properties

❮ Html Unwrap Misc Promise ❯