bootstrap-tokenizer icon indicating copy to clipboard operation
bootstrap-tokenizer copied to clipboard

Clear the tokenizer field

Open jpruiz114 opened this issue 9 years ago • 3 comments

How do you clean the tokenizer field?

jpruiz114 avatar Dec 02 '15 21:12 jpruiz114

There's currently no way yo clean the field programatically.

fmmfonseca avatar Dec 03 '15 10:12 fmmfonseca

I was able to reset it like this:

$(".email-tags").append('');

$("#email-tokenizer").tokenizer();

Maybe you can add to the class a reset method like that.

Thanks for taking the time to answer!!

2015-12-03 5:06 GMT-05:00 Miguel Fonseca [email protected]:

There's currently no way yo clean the field programatically.

— Reply to this email directly or view it on GitHub https://github.com/fmmfonseca/bootstrap-tokenizer/issues/2#issuecomment-161579296 .

Jean Paul Ruiz Vallejo Ingeniero Informático m: (+57) 300-780-43-49 http://www.jeanpaulruizvallejo.com

jpruiz114 avatar Dec 03 '15 14:12 jpruiz114

I was able to do a reset like this:

$(".email-tags").empty();

$(".email-tags").append('');

$("#email-tokenizer").tokenizer();

The html looks like this:

2015-12-03 5:06 GMT-05:00 Miguel Fonseca [email protected]:

There's currently no way yo clean the field programatically.

— Reply to this email directly or view it on GitHub https://github.com/fmmfonseca/bootstrap-tokenizer/issues/2#issuecomment-161579296 .

Jean Paul Ruiz Vallejo Ingeniero Informático m: (+57) 300-780-43-49 http://www.jeanpaulruizvallejo.com

jpruiz114 avatar Dec 03 '15 14:12 jpruiz114