Add functionality for inputs to grow horizontally as text is entered.
- match styles with a hidden div in order to track rendered width
- monitor keypress events
Include the javascript in the <head>
tag of your website.
Call .inpAutoGrow()
on the element you want to autogrow. No options. Works on both single and multiple element selectors.
Works best with a placeholder
attribute declared.