+ 1
Why is the error occuring and css background not working?
11 odpowiedzi
+ 1
1. You have it set to HTML/CSS/JS, rather than setting the editor to jQuery.
2. After you set the editor to "jQuery" and add your HTML code back to the HTML tab, you'll want to correct your jQuery code to use proper syntax (as the error signifies).
ERROR:
"JavaScript Console
Uncaught SyntaxError: Unexpected token .
Line: 2"
CHANGE:
$(function(){
$(.t).click(function(){
$(.list).slideToggle(1000);
});
});
TO:
$(function(){
$(".t").click(function(){
$(".list").slideToggle(1000);
});
});
^When you're using jQuery, you need quotes around your selector. Use either single '' or double "" quotes around it.
Hope that helps.
+ 1
Open up the editor. Above the code-text area, in the upper-right, there is a box that currently says "HTML/CSS/JS." If you click on that box, it'll give you the other options - select "jQuery."
+ 1
change span to div
0
How can I set the editor to jquery?
0
Jakob plz tell me
0
And why is CSS not working
0
There is no box like that
0
There is no box like that
0
Which box are you telling about
0
Jakob tell