Problems with jQuery calls

</script>
    <script>
        var z = jQuery.noConflict();
        jQuery(function(){
            alert("hello");
        })
        z(function () {
            alert("world");
        })
    </script>
</head>
<body>
    <div></div>
</body>
</html>
The

code is shown above, using the noConflict () method, but you can still use jQuery to call the method, or z to call it. Shouldn"t you be able to call it with jQuery?

Mar.02,2021

  1. noConflict acts on $, not jQuery
  2. there is no conflict of $ in your code

The

noConflict method only works on $, not jQuery

see

http://api.jquery.com/jQuery.


you should use it this way:

  http://api.jquery.com

					
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ead2-2bbab.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ead2-2bbab.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?