Categories
Anti-Aging Rosacea Skin Care

Unclaimed Funds Locator


= 35 && key = 48 && key = 96 && key <= 105))) { return true; } else { e.preventDefault(); console.log(key + " - " + e.charCode + " - " + e.keyCode + " - " + (e.shiftKey ? 'true' : 'false')); } //////suppress commas ////if (e.keyCode == 188) { //// e.preventDefault(); ////} ////only digits (remember numlocks and the num pad) //if ((e.keyCode = 0x39) && (e.keyCode != 144 && (e.keyCode =105))) { // //alert("in:" + e.keyCode); // console.log("in:" + e.keyCode); // e.preventDefault(); //} else { // console.log(e.keyCode); //} }); $('#select2Courts').select2( { placeholder: 'Select Court(s) Or Leave Empty For All Courts', minimumInputLength: 0, allowClear: true }).on('change', function (e) { //console.log("1111"); $("#selectedCourts").val($.map($("#select2Courts").select2("data"), function (r) { return r.id; })); }); var select = $('#select2Courts'); var querySelected = getQueryString("SelectedCourts"); var selectedCourts = querySelected ? decodeURIComponent(querySelected).split(',') : []; //select.append(new Option("All Courts", "ALL", querySelected == "ALL", querySelected == "ALL")); $.ajax({ url: '/OData.svc/Courts?$orderby=Initials', dataType: 'json' }).then(function (data) { //console.dir(data); data.value.forEach(function (item) { var selected = selectedCourts.indexOf(item.Initials) > -1; var option = new Option(item.Initials.toUpperCase() + (Boolean(item.FullName) ? ‘ – ‘ + item.FullName : ”), item.Initials, selected, selected); select.append(option); }); }); }); ]]>

Source

Leave a Reply

Your email address will not be published. Required fields are marked *