Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Hello everyone thank you in advence for any help you can give me.

I am using CodeIgniter and bootstrap-wysiwyg. I used it with locally in WAMP and it worked fine but now that I have place on a live server it does not. I get error

Uncaught Reference error: $ is not defined

$(function(){
 function initToolbarBootstrapBindings() {
   var fonts = ['Serif', 'Sans', 'Arial', 'Arial Black', 'Courier', 
        'Courier New', 'Comic Sans MS', 'Helvetica', 'Impact', 'Lucida Grande', 'Lucida Sans', 'Tahoma', 'Times',
        'Times New Roman', 'Verdana'],
        fontTarget = $('[title=Font]').siblings('.dropdown-menu');
  $.each(fonts, function (idx, fontName) {
      fontTarget.append($('<li><a data-edit="fontName ' + fontName +'" style="font-family:\''+ fontName +'\'">'+fontName + '</a></li>'));
  });

any advice? I am new to jQuery, but I try to put variable and I still get the same error thanks again.

EddieD

share|improve this question
 
stackoverflow.com/questions/2075337/… JQuery/js paths in your view files are wrong? Check it... –  nevermind Jun 13 '13 at 17:14
 
Have you put the`<script type="text/javascript" src="path-to-jquery"></script>` tag in your <head>? –  Bad Wolf Jun 13 '13 at 17:49
 
thank you very much. I did not now that it need to be at the header. it works fine. thank you guys very much. –  EddieD Jun 13 '13 at 23:51
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.