MENU
$ Basics
jQuery(String selector [,Element/jQuery context])<br>jQuery(Element/Element[]/Object/jQuery elements)<br>jQuery(String html [, Document doc])<br>jQuery(String html [, Object attributes])jQuery(function(...) f)<br>Note that the prefix 'jQuery' is synonymous with the famous $ jQuery symbol. So all forms of selection here are also applicable to $.(...), which has been used throughout the previous sections in this book. For the last form, the function f is executed when the DOM is ready.<br>.jquery<br>Return a string containing the jQuery version number.<br>$.noConflict([Boolean removeAll])<br>Relinquish jQuery's control of the $ variable. The variable assigned to the returned value will become a new jQuery variable.
RESETRUNFULL
RESETRUNFULL
<!DOCTYPE html><html><head>
<script src="jquery-3.5.1.min.js"></script></head><script>
$.holdReady(true);
$(function(){
jQuery('p').append('Hello');
alert($({a:10}).prop('a')); // 10
j = $.noConflict();
j('<p>Test</p>').insertAfter('p');
alert(jQuery('p').jquery); // 3.5.1
j = $.noConflict(true);
alert(jQuery('p').jquery); // error
});</script><body>
<p></p>
<script>
if (confirm('Ready?'))$.holdReady(false);
</script></body></html>