Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery context Property

jQuery context Property

jQuery Properties jQuery Properties

Example

Check the context:

$

(

"

div

"

)

.

append

(

"

"

(

"

div

"

)

.

context

"

"

)

.

append

(

"

"

(

"

div

"

,

document

.

body

)

.

context

.

nodeName

"

"

)

;

Try it »


Definition and Usage

The context property was deprecated in jQuery version 1.10.

The context property contains the original context passed to jQuery, which may be a DOM node context, or the document context if no node was passed.


Syntax

context


jQuery Properties jQuery Properties