Coder Social home page Coder Social logo

sevencon / flextext Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexdunphy/flextext

0.0 2.0 0.0 287 KB

A lightweight jQuery plugin for auto-height textareas. It's everything you're afraid to let yourself want.

JavaScript 69.04% CSS 30.96%

flextext's Introduction

A lightweight (~800 bytes) jQuery version of the A List Apart - Expanding textarea concept for auto-height textareas, extended for additional browser compatibility, addressing a few browser bugs/issues. Tested and working fine in Safari Mac/iOS 5, Chrome, Firefox 3.6+, Opera, IE8+. (In IE7 the functionality is fine, but the textarea may not be pixel-perfect due to box-sizing browser limitations).

Demo

See the project page.

Usage

  1. Add the base CSS rules from style.css to your stylesheet (and add visual styling for your purposes).
  2. Include the JS files:
    • jQuery (v1.7+)
    • flexText plugin (jquery.flexText.min.js).
  3. Inside a document ready function, call the flexText() method on textarea elements:
$(function () {
	$('textarea').flexText();
});

Requires

jQuery v1.7+

References

Based on/extended from the concept by Neil Jenkins described in the A List Apart article, Expanding Text Areas Made Elegant

flextext's People

Contributors

alexdunphy avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.