Why isnt js working? Again. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
12th Mar 2019, 10:54 PM
Gavin Macpherson
Gavin Macpherson - avatar
7 Answers
0
Do you want to make a code that toggles img just pressing the button?
12th Mar 2019, 11:00 PM
Juan David Padilla Diaz
Juan David Padilla Diaz - avatar
+ 3
I have a new problem with the j query, the code of the links dont work
12th Mar 2019, 11:36 PM
Gavin Macpherson
Gavin Macpherson - avatar
+ 3
I'll find out tommorow
12th Mar 2019, 11:37 PM
Gavin Macpherson
Gavin Macpherson - avatar
+ 1
web is not an object in JSON syntax
12th Mar 2019, 10:57 PM
Juan David Padilla Diaz
Juan David Padilla Diaz - avatar
+ 1
I know what's going on with your code, the problem is that JS file is loaded first than HTML code, as js file doesn't find the button it says cannot src null
12th Mar 2019, 11:04 PM
Juan David Padilla Diaz
Juan David Padilla Diaz - avatar
+ 1
I'd be glad to help you more later, now I'm busy.
12th Mar 2019, 11:22 PM
Juan David Padilla Diaz
Juan David Padilla Diaz - avatar
0
Use jQuery as you already have the library linked for make it more easier than you're doing right now
12th Mar 2019, 11:13 PM
Juan David Padilla Diaz
Juan David Padilla Diaz - avatar