| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/business/applynow_DONE/theme/scripts/ |
Upload File : |
$(function()
{
/* Select2 - Advanced Select Controls */
// Basic
$('#select2_1').select2();
// Multiple
$('#select2_2').select2();
// Placeholders
$("#select2_3").select2({
placeholder: "Select a State",
allowClear: true
});
$("#select2_4").select2({
placeholder: "Select a State",
allowClear: true
});
// tagging support
$("#select2_5").select2({tags:["red", "green", "blue"]});
// enable/disable mode
$("#select2_6_1").select2();
$("#select2_6_2").select2();
$("#select2_6_enable").click(function() { $("#select2_6_1,#select2_6_2").select2("enable"); });
$("#select2_6_disable").click(function() { $("#select2_6_1,#select2_6_2").select2("disable"); });
// templating
function format(state) {
if (!state.id) return state.text; // optgroup
return "<img class='flag' src='http://ivaynberg.github.com/select2/images/flags/" + state.id.toLowerCase() + ".png'/>" + state.text;
}
$("#select2_7").select2({
formatResult: format,
formatSelection: format,
escapeMarkup: function(m) { return m; }
});
});