This allows to automatically check / uncheck between 2 checkboxes:
Javascript:
HTML:Code:<script> function checkRefresh(value) { document.form1.submit(); } function uncheck(check) { var prim = document.getElementById("allcities"); var secn = document.getElementById("allfeatured"); if (prim.checked == true && secn.checked == true) { if(check == 1) { secn.checked = false; checkRefresh(); } else if(check == 2) { prim.checked = false; checkRefresh(); } } } </script>
I want to add a third option:HTML Code:<input type="checkbox" id="allcities" onClick="uncheck(1);"> <input type="checkbox" id="allfeatured" onClick="uncheck(2);">
HTML Code:<input type="checkbox" id="local" onClick="uncheck(3);">
Can anyone suggest a working solution? Thank you.



Reply With Quote



Bookmarks