Commit c0816b26 authored by Eric Duminil's avatar Eric Duminil
Browse files

Checking checkboxes

No related merge requests found
Showing with 11 additions and 1 deletion
+11 -1
......@@ -364,7 +364,17 @@ var regionChooser = (function(){
publicScope.clickety_click = function() {
console.log("You clicked pretty well");
document.querySelectorAll("input.select_citygml").forEach(x => console.log(x));
var checkboxes = document.querySelectorAll("input.select_citygml");
if (checkboxes.length === 0){
//FIXME: Wrong. There are at least one checkbox.
console.log("You should select at least one citygml, though.");
} else{
checkboxes.forEach(x => {
if (x.checked){
console.log("Nice! You checked Citygml " + x.id)
}
});
}
}
focusOnMap();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment