Robert Walker wrote:
> And to get you started you could base a solution around:
> my_text_field.split(/\s/).length

Correction: Make sure you get the string value for the text field for 
use with split():

jQuery example:
$('#my_text_field').val().split(/\s/).length
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to