Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 461 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 461 Bytes

inputAutogrow

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

Installation

Include the javascript in the <head> tag of your website.

Usage

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.