By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,988 Members | 1,074 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,988 IT Pros & Developers. It's quick & easy.

What does "ReferenceError: $ is not defined" mean, and why does in my case it shown

P: 1
javascript:
Expand|Select|Wrap|Line Numbers
  1. $(document).ready(function(){
  2. var lentable="";
  3. var table1=document.getElementById("#tablebody");
  4. for(var i=0;i<table1.length;i++)
  5. {
  6. lentable=table1.length[i];
  7. console.log("lentable");
  8. }
  9. }); 
  10.  
HTML:
Expand|Select|Wrap|Line Numbers
  1.  <table>
  2.                 <tbody id="tablebody">
  3.                     <tr>
  4.                         <td>Completed</td>
  5.                         <td>Completed</td>
  6.                     </tr>
  7.                     <tr>
  8.                         <td>Completed</td>
  9.                         <td>Completed</td>
  10.                     </tr>
  11.                     <tr>
  12.                         <td>Completed</td>
  13.                         <td>Completed</td>
  14.                     </tr>
  15.                 </tbody>
  16.             </table>
  17.  
Feb 15 '14 #1
Share this Question
Share on Google+
1 Reply


Dormilich
Expert Mod 5K+
P: 8,639
did you import the jQuery library?
Feb 15 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.