Jquery show/hide not working

html, jquery

Solution

You're missing the `$` before `("#composer").show();` and `this`

Shouldn't it be `$("#composer").show();` and `$(this)`? Also, make sure you've pulled in the definitions of `show/hide`

Problem

I have this jquery script which suppose to hide/show div element base on the hyperlink that is clicked. I don't know why but it's not working at all. The following is the except of my code. ``` function hide_current_commoncontainer(commoncontainer){ $(commoncontainer).each(function(){ if(this.is(":visible")){this.hide();} }); } function init(){ $("#compose_link").bind("click",function(){ hide_current_commoncontainer(".pmcommoncontainer"); ("#composer").show(); return false; } ); if(Drupal.jsEnabled){ $(document).ready(init); } ``` I've pinpoint the cause and found out that it is show/hide function which is not working. The rest - function calls - are ok. Can anyone tell me where I am doing wrong? Where should I amend my code in order to hide/show div element as the way I wanted.

Original source