Hi Guys,
I am learning jQuery and just came up with this - but really not sure whether it is the best solution.
Would someone be able to assist and tell me whether this is something more "elegant" ?
$('#hde_test').hide();
$('#shw_test').click(function() {
$('#shw_test').hide();
$('#hde_test').show();
$('.class1').show();
});
$('#hde_test').click(function() {
$('#shw_test').show();
$('#hde_test').hide();
$('.class1').hide();
});