Help with loop needed.
Help with loop needed.
Hi there,
Could some kind person please tell me how to achieve the following with a loop, rather than repeating for each element.
$('#hshowcat0').livequery('click',function(event) {
$(this).hide();
$('#showcat1').show();
$('#category1').show();
return false;
});
$('#hshowcat1').livequery('click',function(event) {
$(this).hide();
$('#showcat2').show();
$('#category2').show();
return false;
});