whats wrong with this jquery

Posted by Gandalf StormCrow on Stack Overflow See other posts from Stack Overflow or by Gandalf StormCrow
Published on 2010-03-13T14:59:18Z Indexed on 2010/03/13 15:05 UTC
Read the original article Hit count: 271

Filed under:
|

I'm getting syntax error in firebug here is the code :

$('#moderator-attention').live('toogle', function(){                  
             function () {
                $(".moderator-tex").show();
              },
              function () {
                $(".moderator-tex").hide();
              }

             });

I want to create a toogle function, when button is clicked then textarea with class moderator-tex should appear .. and if other button is clicked then should be hidden ..

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery