function changeList_Color() { // Isolate the appropriate list by using the value // of the currently selected option cboColorType = document.getElementById("cboColorType"); cboColor = document.getElementById("cboColor"); var typeID = cboColorType.options[cboColorType.selectedIndex].value; var list = com.vietaz.thietbivattu.admin.CProduct.getColorType(typeID); list = list.value.split("|||"); list = new Array(list[1].split(','), list[0].split(',')); // Next empty the slave list emptyList(cboColor); // Then assign the new list values fillList(cboColor, list, com.vietaz.thietbivattu.admin.CProduct.getStringColor().value); //function call autocomplete (function($) { $(function() { //$('#cboColor').autocomplete( "destroy" ) $('#cboColor').selectToAutocomplete(); }); })(jQuery); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)