[jQuery] Re: How to count characters

2007-10-23 Thread Jon Ege Ronnenberg
And maybe be more specific. Like $('#MyNumber label').text() On 10/24/07, Karl Swedberg <[EMAIL PROTECTED]> wrote: > > > > On Oct 23, 2007, at 2:25 PM, Johny wrote: > > > > > Thank you all for help. > > One more question: > > For example if > > I have > > 1000 > > > > Is it possible to get the val

[jQuery] Re: How to count characters

2007-10-23 Thread Karl Swedberg
On Oct 23, 2007, at 2:25 PM, Johny wrote: Thank you all for help. One more question: For example if I have 1000 Is it possible to get the value ( here 1000) ? I tried $('#MyNumber').val(); but it did not work. Thank you for help For non-form elements (input, textarea, etc), you'll ha

[jQuery] Re: How to count characters

2007-10-23 Thread Johny
Thank you all for help. One more question: For example if I have 1000 Is it possible to get the value ( here 1000) ? I tried $('#MyNumber').val(); but it did not work. Thank you for help

[jQuery] Re: How to count characters

2007-10-22 Thread Karl Swedberg
On Oct 22, 2007, at 2:04 PM, Johny wrote: I have how can I count numbers of characters that a user writes? Thank you B. Hi Johny, Let's say you have below the textarea. You could do this: $('#id_Message').keyup(function() { var charLength = $(this).val().length; $('#foo').ht

[jQuery] Re: How to count characters

2007-10-22 Thread Andy Matthews
If you just want a total (at any one point) of how many characters are in the field, then this should work: $('#id_Message').val().length; -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Johny Sent: Monday, October 22, 2007 12:25 PM To: jQuery (

[jQuery] Re: How to count characters

2007-10-22 Thread Marshall Salinger
Hi Johny, This is a great plugin for that. http://www.tomdeater.com/jquery/character_counter/ -Marshall Johny wrote: Hi, I have how can I count numbers of characters that a user writes? Thank you B.