jQuery: The Write Less, Do More JavaScript Library

Remove plugin method from element?

View: New views
1 Messages — Rating Filter:   Alert me  

Remove plugin method from element?

by misterbrandt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I am working on a plugin for the chyrp blog engine where the core
javascript has already applied the autogrow jquery plugin to all the
textareas on a page. I am trying to unobtrusively disable this plugin
on a specific textarea (since the tinyMCE WYSIWYG code conflicts
somehow with the autogrow script).

autogrow is applied like so:
        $(document).ready(function(){
                $("textarea").each(function(){
                        $(this).autogrow()
                })
        });

I have read this thread (http://groups.google.com/group/jquery-en/
browse_thread/thread/514383b03e01e2c/cfb4bfa4bc685db6) but to be
honest, I don't fully understand the proposed code snippet. Is there a
simple call to unbind this method? set it to null?

Thanks so much for your help.
LightInTheBox - Buy quality products at wholesale price