How can I use jQuery in Adobe Brackets? Plz help

just use the github website, you can upload files there. Or actually properly install git through homebrew

1 Like

Finally all the files have been uploaded. Now what?! :grinning:

1 Like

give us the repository so we can have a look at all the files

1 Like

you can give me the username so that i add u as a collaborator

1 Like

i use the same username here as on github.

1 Like

I have sent you the request

1 Like

here:

<script type="text/javascript" src="scripts/main.js"></script>

are you sure you uploaded files and directories correctly? Because you use scripts/main.js but there is no scripts directory, the JS file is in the same directory as html file, so then, src should be main.js

i pushed the change to github

for @dave.n if he is still reading: https://github.com/mehul08/Testing

1 Like

Actually I have a folder called scripts in my Testing folder which contains main.js and the jQuery file but when i uploaded the folder yesterday, it was showing error so i uploaded individual files.

1 Like

How i am suppose to fix anything if you donā€™t upload things the way they are?

Okay, i added a local jquery library, and everything still works fine

1 Like

I uploaded the jQuery file yesterday it kept showing error. I tried putting the jQuery file again and it has been successfully uploaded. the main.js file and the jQuery file are in the scripts folder.

The things have been uploaded the way they are i think. GitHub was having problems yesterday

1 Like

i just updated the repository, everything is working on my end

1 Like

Checking it out rn :slight_smile:

1 Like

You have used a CDN right? so that means i can delete the useless jQuery file?

1 Like

He hasnā€™t used a CDN your jquery file is in the scripts folder.

1 Like

I donā€™t know manā€¦

Maybe I donā€™t know how to use github . I will delete brackets and reinstall it because I copied the code and pasted it in the editor but againā€¦

Iā€™ ll keep trying and get back to you. Thanks for your help guys specially @stetim94 he/she has helped me out so many times before also.

NEVER GIVE UP! :fist:

2 Likes

i used CDN first, then i switched back to jquery as you original had it.

Both worked perfectly, you can see commits, allowing you to see the changes i made

Yes, github is difficult, but it allows you to keep track of changes i made to your code

1 Like

On which code editor did u test the code?

Because I reinstalled brackets latest version. Copied the edited code but it is still running the jQuery code i wrote earlier. Itā€™s still running the old code when I change the jQuery a little bit.

1 Like

Code editor is not relevant? I used VIM, donā€™t use it, it will drive you crazy

You run the output in the browser right? Not directly in text-editor? Refresh page after making changes to jquery

1 Like

I copied the html code in the index.html. Wrote jQuery in main.js which is contained within the scripts folder. The jQuery file is also in the scripts folder. And the live preview works in Chrome.

I will keep tryingā€¦

1 Like

The editor is showing JSLint Problems and another problem related to ā€˜binding one or two handlers to the matched elements to be executed hen the mouse pointer enters and leaves the elements.ā€™

Please check out the pic below. Maybe the editor has problems with my code?

1 Like