And my question becomes a mute point when I simply surround the textarea with a div with hide and show that div instead of the textarea... simple solution.
Rick > -----Original Message----- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf Of Michael Geary > Sent: Saturday, February 14, 2009 12:15 AM > To: jquery-en@googlegroups.com > Subject: [jQuery] Re: Why won't this "unbind" work? > > > 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 > >