Fork me on GitHub

jquery.rubber.js by fent

jQuery plugin that stretches text fields to fit their content.

This is like the [elastic](http://unwrongest.com/projects/elastic/) plugin but for text fields. Text fields will stretch accordingly to fit their content. It does not stretch text fields any longer than their parent's width, preventing breaking the layout.

Usage

$('input').rubber();

You can control the starting width by setting the width CSS field and the max width with the min-width CSS field.

Demo

License

MIT

Authors

fent

Download

You can download this project directly from here.

You can also clone the project with Git by running:

$ git clone git://github.com/fent/jquery.rubber.js