Skip to content Skip to sidebar Skip to footer

$ Is Not Defined In Jquery

Let me show you all, i put this code in a file called consultas.php CONSULTAS.PHP This file shows the table with data, at the end of column called folio id=''.$row['folio'].'' when

Solution 1:

In consultas.php, you must include JQuery (<script src="js/jquery-1.11.2.js"></script>) before using it, before your <script>.

In web, each page is different, then you must add jQuery in each one.

example

<scriptsrc="js/jquery-1.11.2.js"></script><scripttype="text/javascript">     
        $(document).ready(function() {
        /* ... */
        });
</script>

Solution 2:

In some cases you have to use jQuery instead of $.

2nd option: jQuery(document).ready(function($) {

After this you can use $ as synonym for jquery.

Solution 3:

This error is because you're missing the JQuery library. If you are including your Javascript libraries(including JQuery) at the bottom of your page(footer), you can either

  • Include the JQuery library at the top of the page

OR

  • make your Javascripts functions into a common js file and include it at the footer just below the Jquery include.

Here is the link to Jquery CDN

Post a Comment for "$ Is Not Defined In Jquery"