MyBB Community Forums

Full Version: Is there a plugin for textarea of thread or comment to open a wide textarea?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a plugin for textarea of thread or comment to open a wide textarea?

Here what I mean, let's base it on facebook:
When the user click edit, the textarea will be default size like this
[Image: 5d2q9k7342f83pz6g.jpg]

When the user is editing his post/comment, the textarea will open wide depending on the text inside the textarea, like this
[Image: mkvgzjs9zk35o3m6g.jpg]
Use jQuery, (GOOGLE my friend)

Something like,

$('textarea').focus(function () {
    $(this).animate({ height: "4em" }, 500);
});

Or even:
$('textarea').focus(function () {
     $( this ).css({
        "height": "100px",
        "width": "200px"
     });
});