Solved my problem! Thank you for the help!
For others with the same problem:
<code>
<html>
<head>
<script type="text/javascript">
function validateForm()
{
if(document.getElementById('test').checked!=true) {
alert("Permission must be given.");
return false;
}
}
</script>
</head>...
Thank you for the help Vacunita, unfortionatly i still cannot get this to work, after applying your code it still jumps straight to the form's action.
Must i fetch the radiobuttons as an array or something like that?Been working this for a while now so any pointers are welcome!
Quite new to...
Hello! I was hoping someone would be able to give me some pointers with a problem of mine.
My code does not return true even when the the correct radiobutton is checked. Any help is appreciated!
<html>
<head>
<script type="text/javascript">
function validateForm()
{
var...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.