Russian input for word count
问题 Ok, so this is what I have (special thx to Tushar Gupta, for fixing the code) HTML <input type='checkbox' value='2' name='v'>STS <input type='checkbox' value='4' name='v'>NTV js $(function () { var wordCounts = {}; $("input[type='text']:not(:disabled)").keyup(function () { var matches = this.value.match(/\b/g); wordCounts[this.id] = matches ? matches.length / 2 : 0; var finalCount = 0; var x = 0; $('input:checkbox:checked').each(function () { x += parseInt(this.value); }); x = (x == 0) ? 1 :