Sublime Forum

Why isn't my Jquery working?

#1

UPDATE: ISSUE RESOLVED

I thought I’d post the answer here ( incase anybody is a dumb as me :blush: )

When using HTML 5 Boilerplate some text editors call Javascript differently.

To get it working with ST2 you need to call it by editing this:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>

to this

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js'></script>

within the index.html.

I may be wrong, but this has JavaScript working in my browser – when viewing via a local host.


Hello,

I’m really confused.

I’m using HTML5 Boilerplate.

And I’m trying to teach myself a bit of JavaScript (with the help of Jquery).

However, whatever I do doesn’t work :frowning: .

Now, I’m trying to view what I’ve done in my HTML via Google Chrome on a localhost.

When I load it into a browser (localhost) nothing is hidden.

Here’s what I’m seeing on my HTML document.

[code]<!doctype html>

click me

This is a testThis is a testThis is a testThis is a testThis is a testThis is a testThis is a testThis is a testThis is a testThis is a testThis is a testThis is a testThis is a testThis is a testThis is a testThis is a testThis is a testThis is a testThis is a testThis is a testThis is a testThis is a test

[/code]
0 Likes