Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add and remove the bootstrap typeahead dynamically

Can we add and remove the bootstrap typeahead dynamically.

Means in some case I need to give the typeahaed functionality to one textbox and need to remove this functionality for the same input box in another case.

like image 694
Anuja Patil Avatar asked Jun 02 '12 09:06

Anuja Patil


1 Answers

I know I'm late to the party, below will remove instead of just hide.

$('.typeahead').typeahead('destroy');
like image 135
Jeremy A. West Avatar answered Oct 22 '22 01:10

Jeremy A. West



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!