I got my jQuery working fine in jsfiddle. However, it won't work in my actual application because of the dom.
I'm new at this, i think I might be using the wrong syntax or something?
Here's my jsfiddle, note that it works if you select domready but not wrap.. I'm really confused
Here's the actual code:
$curr = $('#first');
$(document).ready(function () {
$('.next').click(function () {
$curr.hide();
$curr = $curr.next();
$curr.show();
});
});
$(document).ready(function () {
$('.previous').click(function () {
$curr.hide();
$curr = $curr.prev();
$curr.show();
});
});
<body>.