context Property - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:context


The context property was deprecated in version 1.8 and removed in jQuery version 3.0.

The context property contains the original context passed to jQuery.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<script src=""></script>
        var c = $().context;/*from   w w w.  j  a v a 2s  .co  m*/
        console.log("You are running jQuery: " + c);

<button>Click me!</button>


Related Tutorials