Your code is calling .unbind() on the #myTextarea element.

What event handler is bound to the #myTextarea element?

N.B.: .expandable() is not an event handler. Is it? What is it?

-Mike

> From: Rick Faircloth
> 
> Given these scripts:
> 
> $(document).ready(function() {
>      $('#myTextarea').hide();
> });
> 
> $(document).ready(function() {
>      $('#hide').click(function() {
>           $('#myTextarea').unbind().slideUp();
>           return false;
>      });
> });
> 
> $(document).ready(function() {
>      $('#show').click(function() {
>           $('#myTextarea').expandable().slideDown();
>           return false;
>      });
> });
> 
> and this HTML:
> 
>      <p>
>         [ <strong>Notes concerning textarea</strong> ]
>         [ notes ]
>         [ <a id="hide" href="#">hide</a> ]
>         [ <a id="show" href="#">show</a> ]
>         [ export ]
>         [ clear ]
>      </p>
>       
>      <textarea id="myTextarea" cols="100"></textarea>
>       
> 
> Why won't this code unbind the .expandable function?
> (.expandable is a reference to the .expandable plug-in)
> 
> Thanks for any input...
> 
> Rick
> 

Reply via email to