Select2 – PHP Autocomplete https://phpautocomplete.com The Ultimate PHP Dropdown Fri, 14 Feb 2014 17:23:52 +0000 en-US hourly 1 https://wordpress.org/?v=7.0.4 Under the Hood https://phpautocomplete.com/examples/under-the-hood/ Tue, 04 Feb 2014 00:03:40 +0000 http://phpautocomplete.com/?p=73 PHP Autocomplete use jQuery Select2 library as the choice of weapon. The Select tag is essentially transforms into combination of hidden Input and and Ul tags. The implication is that you cannot no longer use Select related jQuery method. For example to empty a selection instead of using

$("#state").val();

use

$("#state").select2("val", null);
]]>