<html>
<head>
<title>jQuery textarea resizer plugin</title>
<script type="text/javascript">
/* jQuery textarea resizer plugin usage */
$(document).ready(function() {
$('textarea.resizable:not(.processed)').TextAreaResizer();
});
</script>
<style type="text/css">
div.grippie {
background:#EEEEEE url(grippie.png) no-repeat scroll center 2px;
border-color:#DDDDDD;
border-style:solid;
border-width:0pt 1px 1px;
cursor:s-resize;
height:9px;
overflow:hidden;
}
.resizable-textarea textarea {
display:block;
margin-bottom:0pt;
width:50%;
height: 30%;
}
</style>
</head>
<body>
<h1>jQuery TextAreaResizer plugin example</h1>
<h2>Simple textarea + Resizer bar (grippie)</h2>
<textarea rows="5" class="resizable">some test text
some test text
some test text
some test text
some test text
some test text
</textarea>
</body>
</html>
Code language: HTML, XML (xml)
In the above code the textarea is made re-sizable by using jQuery plugin. All you have to do is to include jquery.textarearesizer.js in your HTML document where you have the textarea and call .TextAreaResizer();
method. $('textarea.resizable:not(.processed)').TextAreaResizer();
Code language: JavaScript (javascript)
Notice that we have passed class name .resizable in the jquery call $() and then called TextAreaResizer() method. Java URL Encoder/Decoder Example - In this tutorial we will see how to URL encode/decode…
Show Multiple Examples in OpenAPI - OpenAPI (aka Swagger) Specifications has become a defecto standard…
Local WordPress using Docker - Running a local WordPress development environment is crucial for testing…
1. JWT Token Overview JSON Web Token (JWT) is an open standard defines a compact…
GraphQL Subscription provides a great way of building real-time API. In this tutorial we will…
1. Overview Spring Boot Webflux DynamoDB Integration tests - In this tutorial we will see…
View Comments
Great!, usefull. Thanks!
Thanks for the comment Felix. Feel free to subscribe for RSS feed for more such articles from viralpatel.net :)
Hi there,
I'll give it a try, sounds very useful :)
Thanks a lot for this jquery plugin.
thank you... working good...
How to block stretch under ff.4x?
http://2.bp.blogspot.com/_mg7ZLoSThok/TB4yIBop31I/AAAAAAAAADQ/xIXtdpYzzI4/s320/resizer_is_displayed_at_div_element.png
Is there any option to have grippie on the right side for horizontal resizing?
Thanks, work great! :)
thank you… working good…good job :)
Hello Viral Patel, thank you for your work. Ist works great with my own WordPress Themes. I have placed the CSS as a separate file, and specified in the header.
nice plugin thanks a lot