Created
April 8, 2016 01:51
-
-
Save 13bzhang/92be517b6558132c78620ad029c77f4d to your computer and use it in GitHub Desktop.
Qualtrics text before and after textbox
This file contains 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() | |
{ | |
/*Place Your Javascript Below This Line*/ | |
var inputs = $(this.getQuestionContainer()).select('input[type="text"]'); | |
for (var i = 0; i < inputs.length; i++) { | |
var input = inputs[i]; | |
$(input).insert({before: 'In '}); | |
$(input).insert({after: ' years'}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for this!