how to clear tokenfield with js

I want to make a reset button for a jquery tokenfield, but dont know how to reset it.

HTML

<input type="text" class="input" name="testtokenfield" id="testtokenfield" placeholder="testtokenfield" value="">
<button onclick ="clear()"></button>

JS

$('#testtokenfield').tokenfield({
        showAutocompleteOnFocus: true
}); 
function clear(){
     document.getElementById('testtokenfield').value = "";
}

170 thoughts on “how to clear tokenfield with js”

  1. Pingback: order viagra
  2. Pingback: female viagra
  3. Pingback: cialis price
  4. Pingback: canadian viagra
  5. Pingback: cialis canada
  6. Pingback: cost of tadalafil
  7. Pingback: tadalafil drug
  8. Pingback: viagra vs cialis
  9. Pingback: purchase viagra
  10. Pingback: viagra men
  11. Pingback: female viagra pill
  12. Pingback: lady viagra
  13. Pingback: viagra and cialis
  14. Pingback: generic sildenafil
  15. Pingback: sildenafil revatio
  16. Pingback: generic for viagra
  17. Pingback: natural viagra

Leave a Comment