Skip to content

Commit

Permalink
Merge pull request aehlke#25 from berwinter/master
Browse files Browse the repository at this point in the history
valid XHTML
  • Loading branch information
aehlke committed Aug 31, 2011
2 parents 440b9b7 + 7bb6305 commit 21fda6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/tag-it.js
Expand Up @@ -96,7 +96,7 @@
this.tagList = this.element.find('ul, ol').andSelf().last();
}

this._tagInput = $('<input type="text">').addClass('ui-widget-content');
this._tagInput = $('<input type="text" />').addClass('ui-widget-content');
if (this.options.tabIndex) {
this._tagInput.attr('tabindex', this.options.tabIndex);
}
Expand Down Expand Up @@ -148,7 +148,7 @@
});
} 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.options.singleFieldNode = this.tagList.after('<input type="hidden" style="display:none;" value="" name="' + this.options.fieldName + '" />');
}
}

Expand Down Expand Up @@ -331,7 +331,7 @@
this._updateSingleTagsField(tags);
} else {
var escapedValue = label.html();
tag.append('<input type="hidden" style="display:none;" value="' + escapedValue + '" name="' + this.options.itemName + '[' + this.options.fieldName + '][]">');
tag.append('<input type="hidden" style="display:none;" value="' + escapedValue + '" name="' + this.options.itemName + '[' + this.options.fieldName + '][]" />');
}

this._trigger('onTagAdded', null, tag);
Expand Down

0 comments on commit 21fda6e

Please sign in to comment.