Friday 7 May 2021

JQUERY19

 

<HTML>

<head>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

<script>

$(document).ready(function(){

var obj1 = { what: "A regular JS object" },

obj2 = $('body');

if (obj1.jquery)

{

document.write('obj1 is a jQuery object.'); 

//console.log('obj1 is a jQuery object.'); 

}

if (obj2.jquery)

{

document.write('obj2 is a jQuery object.');

//console.log('obj2 is a jQuery object.');

}

});

</script>

</head>

<body>

</body>

</HTML>