This forum is now read-only. Please use our new forums! Go to forums
My code passed but the car doesn't move. I used two codes, the first one being....
My code passed but the car doesn’t move. I used two codes, the first one being….
$(documentation).ready(function() { $(‘#car’).click(function(); $(this).draggable();
Then the second code being…..
$(document).ready(function(){ $(‘#car’).draggable(); })
Question is what will make the car move
Answer 538e4cb7631fe913d3004b77
Answer 5479e92f80ff33e178003577
0 votes
I thought that my code also is not working, but , I just didn’t understand that to move car you need to click on it with mouse left button an move :D maybe someone have the same problem;)
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
4 comments
i think this is the right code: $(document).ready(function(){ $(‘#car’).click(function(){ $(‘#car’).draggable(); }); }); only thing is, it works with this also, but that does not pass the test to proceed.
this, in stead of ‘#car’ i mean
thanks!
We don’t need a click event handler since the draggable function has its own built in listeners for mouseenter, mousedown and mousemove events.