jQuery Word-wrap Plugin

A simple jQuery plugin that allows you to enable and disable wordwrapping on textareas (cross browser).
Posted by Scripts on 2022-08-15 07:30:36
License Type
License Type
Freeware
Description
When it comes to textareas, the concept of word-wrapping is not as easy as it should be. In most browsers, including Firefox, Safari, Chrome, and Opera, you can set the textarea’s wrap attribute to on or off to achieve your preference. Internet Explorer, on the other hand, requires a special value for the wrap attribute. Although it should be simple enough to check for the browser type and toggle the appropriate value for wrap on-the-fly, there’s one more problem. Because it’s not technically a valid attribute, most browsers (other than IE) won’t respond to changes to the wrap attribute that occur via JavaScript. This means that if you want to have a checkbox next to your textarea that enables and disables word-wrapping dynamically, you’re out of luck. That's where the jQuery Word-wrap plugin comes in.
Author

aksival

Ratings & Review
Uh oh! We couldn't find any review for this listing.
Post Review
License Type
License Type
Freeware