I've got 3 tabs. Each of them have a div called optional, apart from other elements. optional is initially hidden using Javascript, I dun wanna use CSS ( this is so if js is disabled, the div won't be hidden at all ).
So I use this to hide optional
$(function(){
$('#optional').hide();
});
Now, this works just fine on the first tab but won't hide on the next two tabs. They've all got the same code, no naming conflicts and no javascript errors reported.
Any idea what I'm doing wrong?