Skip to content Skip to sidebar Skip to footer

I Created Textarea Expander From Script But After, It Doesn't Expands

I don't know if the title is correct. I created, with one script, a table with 5 textarea with class='expand'. This textarea when I write expands but then doesn't works. Is there a

Solution 1:

The plugin prepares textareas on document.ready, so any textarea that this class is assigned to after document.ready fired will not be affected by the plugin - however, you can just call the plugin directly instead of adding the class:

jQuery(".expand").TextAreaExpander();

However, you should not run TextAreaExpander twice on one element, so be sure to use another classname for the newly generated textareas if you have textareas using the plugin that are initialized on document.ready - alternatively you can delete the last few lines of the plugin.

Post a Comment for "I Created Textarea Expander From Script But After, It Doesn't Expands"