I 开发者_C百科have a vertical only resizable div in my page. I'd like to put a handle "grip" like what there is in this page at the bottom of the textarea in the section "Your Answer". How can I do it?
How about jQuery UI's resizable interaction?
$('some-selector').resizable({
handles: 's',
maxWidth: 300,
minWidth: 300
});
Demo: http://jsfiddle.net/mattball/6H4Nc/
The textarea comes with that functionality, but you could look into jQuery UI Resizable
精彩评论