This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Qualtrics.SurveyEngine.addOnload(function() { | |
var maxWords = 0; //update as needed, 0=no limit | |
var q = jQuery("#"+this.questionId); | |
var input = q.find(".InputText"); | |
input.after("<div style='font-size:0.8em;float:right'>Word count: <span class='wordCount'>0</span><span class='maxWords'></span></div>"); | |
var display = q.find(".wordCount"); | |
if(maxWords > 0) q.find('.maxWords').text("/"+maxWords); | |
countWords(input.get(0)); | |
input.on("input", function() { countWords(this) }); | |
input.blur(function() { this.value = this.value.trim(); }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0o | |
0s | |
3a | |
3b | |
3d | |
6b | |
6o | |
a | |
a1 | |
a2 |