From f0ac25ac25d2e73d6dc0759482dd0c0ce1f76ddf Mon Sep 17 00:00:00 2001 From: Vinicius Depizzol Date: Wed, 13 Jul 2011 16:29:32 -0300 Subject: [PATCH] makes base input hidden according to type and not to css --- src/jquery.tokeninput.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/jquery.tokeninput.js b/src/jquery.tokeninput.js index c2cf7dbf..d25d41dd 100644 --- a/src/jquery.tokeninput.js +++ b/src/jquery.tokeninput.js @@ -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();