Hi there.. i have this script, which checks input values and radio button values..
The normal input check works sweet, but the radio-box check has a problem.. well i get the alert window, but when i press ok, the page still loads and does not return false..
at the normal inputs the page stops loading when i click ok.. can anybody help me plz ?! thx !!
Code:<script type="text/javascript"> function checksubmit() { var radio_choice = false; for (counter = 0; counter < form1.modus.length; counter++) { if (form1.modus[counter].checked) radio_choice = true; } if (!radio_choice) { alert("Select your Live-Mode !!") document.getElementById("form1").modus.focus() return false } if (document.getElementById("form1").artist.value == "") { alert("Enter your Artist-Name !!") document.getElementById("form1").artist.focus() return false } if (document.getElementById("form1").title.value == "") { alert("Enter your Show-Title !!") document.getElementById("form1").title.focus() return false } return true } </script>



Reply With Quote
Bookmarks