Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Commit

Permalink
makes base input hidden according to type and not to css
Browse files Browse the repository at this point in the history
  • Loading branch information
vdepizzol committed Jul 13, 2011
1 parent f71fc85 commit f0ac25a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/jquery.tokeninput.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,12 @@ $.TokenList = function (input, url_or_data_or_function, settings) {
unique_counter++;
return 'u' + unique_counter;
}


// hides original input box
input.type = 'hidden';

// Keep a reference to the original input box
var hidden_input = $(input)
.hide()
.val("")
.focus(function () {
input_box.focus();
Expand Down

0 comments on commit f0ac25a

Please sign in to comment.