<textarea id="source"></textarea>
<span id="target"></span>

<script>
jQuery('#source').change(function(){jQuery('#target').html(jQuery('#source').val().match(/\S+/g).length);})
</script>

On Wednesday, 27 February 2013 00:00:14 UTC-6, John Ho wrote:
>
> I would like to count the words as entered into the textareas of SQLFORM 
> form.  I've found several jQuery scripts, but couldn't get them to work 
> yet.  Any recommendations for such scripts?
> I think this would be a nice feature to add into web2py. 
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to