thatdevgirl / textarea-limit

Text area limit in YUI 2.7

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Text Area Limit (using YUI)

Author: Joni Halabi (www.thatdevgirl.com)

Description

This text area limit widget was developed as a proof of concept for implementing a character limit inside a text area. Character limits are not built into text area fields just yet as they are with input fields, so it is necessary to have a Javascript implementation if you need to limit the input prior to submitting your form. This implementation was written for a client project, which required YUI 2.7.

What is in the Javascript?

This project contains all of the applicable YUI 2.7 libraries in the /scripts/yui directory. All of the customization required for the text area field is in the textarea-limit.js file.

What is in the CSS?

This project contains 2 CSS files:

  1. reset.css: Just a basic CSS reset, inspired by the Eric Meyers' CSS reset.

  2. textarea-limit.css: Contains the base CSS for the text area limit widget.

About

Text area limit in YUI 2.7

License:MIT License


Languages

Language:JavaScript 70.8%Language:CSS 29.2%