Solved
Word Count for Multiple Text Entry on the Same Page
Hello all. I've successfully used this thread to add word count to text entry question.
However, has anyone figured out how to adapt this to work with multiple text entry question on a single page, with each question counting its specific words. I've tried setting the specific QID# for each question, but that didn't seem to work.
Best answer by TomG
Someone just asked this the other day and referenced the same code. ids must be unique per page. So, change wordCountDisplay to a class then find the element relative to the question.
HTML:
```
<span class="wordCountDisplay">0</span>
```
JS:
```
var display = $(this.questionId).select('.wordCountDisplay');
```
P.S. The reference is to an old post and uses prototypejs. I recommend switching to jQuery.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
