Can anyone please tell me how i can add an infinite loop or a constant repeat on this piece of JavaScript
I have?
<script>
$(".modcontentnewestmore").hide();
$('.morebutton').click(function () {
if ($('.modcontentnewestmore').is(":hidden")) {
$(".modcontentnewest").fadeTo(500, 0);
$('.modcontentnewestmore').fadeTo(0, 500);
} else {
$('.modcontentnewestmore').fadeTo(500, 0);
$('.modcontentnewest').fadeTo(0, 500);
}
});
</script>