Im just getting to grips with jquery and im trying to write something like this, please note the puesdo code on the 3rd line.
How can i write this (as in the .tile) and then select the tiles box element.
$(document).ready(function() {
$('.tile').hover(function () {
$('this->.box').stop().slideToggle("300");
});
});
Ive made a jsfiddle of the problem here - http://jsfiddle.net/pudle/m6ZjH/2/
$(document).ready(function() {
$('.tile').hover(function () {
$(this).children('.box').stop().slideToggle("300");
});
});
Here's your fiddle updated.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With