Is it possible to limit number of characters across multiple fields?
I'm using jQuery count and need to set a total character limit across multiple fields.
If limit is 100 and user enters 75 char in 1st field they should only be able to enter 25 characters in 2nd field.
DEMO: http://jsfiddle.net/2xfCG/
Example:
<form id="count">
<textarea id="one" class="text" ></textarea>
<textarea id="two" class="text" ></textarea>
<span id="left" />
</form>
<script>
$(function() {
$('#one, #two').limit('140','#left');
});
</script>
Above does not work. Also tried $('#one', '#two").limit('140', '#left');