How to make text input box resizable (like textarea) by dragging its right-bottom corner using jQuery?

Frodik picture Frodik · Dec 20, 2011 · Viewed 31.1k times · Source

I would like to have (preferrably in jQuery) regular text input box which can be clicked and dragged by its right-bottom corner (e.g. like textareas have in Chrome) and resized by user ?

Can't find any jQuery plugin already implementing this. Can anybody give me hint if something like this exists or how could it be easily implemented ?

Thank you in advance.

EDIT: I want to be resizable similarly like textarea is in Chrome...

Answer

XepterX picture XepterX · Dec 20, 2011

You don't need jQuery to handle this. What you need is css.

#yourTextInput{
resize:both;
}

This will allow your text input to have the resize option on the right