Skip to content

Commit

Permalink
Update autocompleteexample.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Miking98 committed Dec 4, 2013
1 parent 064271d commit 9bf4199
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/autocompleteexample.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ $(document).ready(function() {
$("#tagit_ul").tagit({
placeholderText: "Type a topic", //Placeholder text to show user before they type
//For every tag created, two hidden input fields will also be created
fieldName: "usernames", //This field is for the actual String displayed on the tag- to access it in PHP, call $_POST['usernames']
itemName: "userids", //This is for the user ID that we don't want displayed- to access it in PHP, call $_POST['userids']
fieldName: "usernames", //This field is for the actual String displayed on the tag- to access it in PHP, call $_POST['usernames']
itemName: "userids", //This is for the user ID that we don't want displayed- to access it in PHP, call $_POST['userids']
singleField: false, //Don't store every value in a single hidden input field
allowSpaces: true, //Allow tags to have spaces
minLength: 2, //Minimum length of tag- anything less and an AJAX request will not be sent
Expand Down

0 comments on commit 9bf4199

Please sign in to comment.