sweet little gadget! Joomlafreak
On May 8, 1:00 pm, "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > On Tuesday, May 08, 2007 8:48 AM [EMAIL PROTECTED] <> said: > > > I've just released the first version of a simple plugin to add > > character counters/limiters to textarea elements. The demo and code > > can be found here: > > >http://www.tomdeater.com/jquery/character_counter/ > > Great! > > Comment: > > I think you should change the 'container' option into a more flexible > 'attachTo' option. > > It would work like this: > > <html> > > <form> > <textarea id="text1" ...></textarea> > <div id="count_text1"></div> > </form> > > </html> > > $("textarea").charCounter(100, { > attachTo: "#count_text1", > className: "counter" > > }); > > Chris.