-1

I hear from the comments that toggle does not fit here, so I removed it. The code below works...but is there a better way to do this...my Jquery is limited. Thank you.

$(document).ready(function(){
$('div.botColorBoxBtn1').click(function() {
        $("div.botColorBox").css({ 'height':'90px'});
        $('div.botColorBoxBtn1').hide();
        $('div.botColorBoxBtn2').show();return false;
});
});

$(document).ready(function(){
$('div.botColorBoxBtn2').click(function() {
        $("div.botColorBox").css({ 'height':'11px'});
        $('div.botColorBoxBtn2').hide();
        $('div.botColorBoxBtn1').show();return false;
});
});
Brett
  • 21
  • 3

1 Answers1

3

That's the intended result, as .toggle() will show/hide the matched element.

jrummell
  • 41,960
  • 17
  • 114
  • 168