khanat-opennel-code/code/web/public_php/api/data/js/combobox.js

18 lines
417 B
JavaScript
Raw Normal View History

2014-09-10 00:20:23 +00:00
function comboInit(thelist)
{
theinput = document.getElementById(theinput);
var idx = thelist.selectedIndex;
var content = thelist.options[idx].value;
if(theinput.value == "")
theinput.value = content;
}
function combo(thelist, theinput)
{
theinput = document.getElementById(theinput);
var idx = thelist.selectedIndex;
var content = thelist.options[idx].value;
theinput.value = content;
}