khanat-opennel-code/code/web/api/data/js/combobox.js
SirCotare 51cc279942 #1470 updated API & achievements tracker to latest live version
--HG--
branch : gsoc2012-achievements
2013-02-15 15:04:02 +01:00

17 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;
}