How do I remove all tags in an input field below with jQuery?
<input class="form-control" id="videotags" data-role="tagsinput" placeholder="Video Tags" type="text">
//what I tried:
<script>$("#videotags").remove();</script>
If you are using Bootstrap tagsinput
try this:
$("#videotags").tagsinput('removeAll');
source
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With