autodist/webbuild/html/scripts/webbuild.js

15 lines
382 B
JavaScript

function getCheckedValuesByName(checkboxname) {
var e=document.getElementsByName(checkboxname);
var p="";
for (var j=0;j<e.length;j++) {
if (e[j].checked) p+=e[j].value+" ";
};
return p;
}
function getSelectedValueById(selectname) {
var i=document.getElementById(selectname).selectedIndex;
return document.getElementById(selectname).options[i].value;
}