jQuery doesn’t load in Firefox

Hello all,

Last day I had a problem with jQuery and Firefox. I had to create a drop-down menu and it worked perfectly fine in Safari and IE but not in Firefox.

My code looked like this:

<script type=”text/javascript” src=”js/jquery-1.4.4.min.js”/>
<script>

//some jQuery code

</script>

The problem is that Firefox wants <script type=”text/javascript” src=”js/jquery-1.4.4.min.js”></script> and not <script type=”text/javascript” src=”js/jquery-1.4.4.min.js”/>.

Hope this helps,

Andrei

Advertisements

About javaxtendsolutions
Java programmer

One Response to jQuery doesn’t load in Firefox

  1. Scott M says:

    Of course it doesn’t like the self-terminating syntax. That’s because the HTML tag is defined as requiring a closing tag (it’s incorrect to use it as a self-terminating tag).

    FireFox does a better job adhering to standards than most other browsers, so FF gave you the trouble.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: