Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@13bzhang
Last active June 25, 2017 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 13bzhang/81e153726c0fec69ca3bb98ebed68fd2 to your computer and use it in GitHub Desktop.
Save 13bzhang/81e153726c0fec69ca3bb98ebed68fd2 to your computer and use it in GitHub Desktop.
Qualtrics autofill
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<link href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" rel="stylesheet" />
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
Qualtrics.SurveyEngine.addOnload(function()
{
/*Place Your JavaScript Here*/
var j = jQuery.noConflict();
$j(function() {
var availableTags = [
"George Jefferson",
"Archie Bunker",
"Kid Dynomite",
"Schneider"
// You can continue adding names//
];
$j( ".InputText" ).autocomplete({
source: availableTags
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment