Select2 jquery tutorial - reset and empty value (select2 v.3.5 and v.4)

Опубликовано: 11 Июнь 2017
на канале: Ambar Hasbiyatmoko
10,303
20

in this video i will show you how to reset value select2 jquery. So simple, just add the following script :
$("#address").select2('val', '');
$("#address").html('');

in your javascript ..

that script works on select2 v.3.5.3 and also v.4.0

---
see this video for details.