Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why would my javascript file not be loading?

Tags:

javascript

I am trying to load a JS file into my website, I have placed the file into exactly the same folder as one that does load, but firebug does not show that it has loaded, and it's effects are not visible.

Why could this be?

Here is the code to load the script

<script src="<?php bloginfo('template_url'); ?>/page-customs/js/QES_form_edits.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/page-customs/js/datepicker.js" type="text/javascript" charset="utf-8"></script>

The first is not being loaded, the second is.

Here is the script itself:

jQuery(document).ready(function($) {

$("fieldset#keyword p.instruction").html("Search for a name or description of an activity, venue (e.g. Link Center) 
    or other keywords (e .g. coach)");


});

Jquery is loading fine.

like image 578
Mild Fuzz Avatar asked May 24 '26 09:05

Mild Fuzz


1 Answers

Firebug will not show a javascript file as loaded if the file will not run due to invalidation. Fix JS, fix problem.

like image 63
Mild Fuzz Avatar answered May 25 '26 23:05

Mild Fuzz