mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-27 17:26:16 +00:00
18 lines
417 B
JavaScript
18 lines
417 B
JavaScript
|
|
||
|
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;
|
||
|
}
|