Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Adam Smallman
4,182 PointsI NEED HELP!!!!
This dont work I cant work it to????? <script> $(document).ready(function(){ $(".new").mouseenter(function(){ $(".line").animate({left:'435px'}, 1000);
});
});
</script>
<script>
$(document).ready(function(){
$(".new").mouseleave(function(){
$(".line").animate({right:'435px'}, 1000);
});
});
</script>
2 Answers
Brad L'estrange
2,085 PointsI am not a javascript coder I know a little but hardly any but isnt it case sensitive so where you have.
.mouseenter and .mouseleave try to replace them with .mouseEnter and .mouseLeave
or I am not 100% sure but when I looked up .mouseleave it was jQuery so have you got jQuery include?
Adam Smallman
4,182 PointsThanks for your reply, Its all jQuery but i will try changing to uppercase.
Thanks