Skip to content


Subversion checkout URL

You can clone with
Download ZIP


option singleFieldNode should be a selector #105

wants to merge 1 commit into from

2 participants


When the option singleField is set, and tag-it is implemented on a list, a single hidden field is added to the dom. However, singleFieldNode is being set to the list dom object returned by the jQuery after function. It needs to be set to the selector of the hidden field in order to work properly. This patch fixes that problem.


Fixed in f323856

@aehlke aehlke closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 26, 2012
  1. @Gator92
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 js/tag-it.js
4 js/tag-it.js
@@ -157,7 +157,9 @@
} else {
// Create our single field input after our list.
- this.options.singleFieldNode = this.tagList.after('<input type="hidden" style="display:none;" value="" name="' + this.options.fieldName + '" />');
+ this.tagList.after('<input type="hidden" style="display:none;" value="" id="' + this.options.fieldName + '" name="' + this.options.fieldName + '" />');
+ // Set the selector
+ this.options.singleFieldNode = '#' + this.options.fieldName;
Something went wrong with that request. Please try again.