thank you very much.
i dont know much about the javascript, but unfortunately my form needs javascript validation.
i have another quuestion. i have the form with several fields, but i only need to validate if radio is selected w/o enter name into name field. I want to display message both coditions are meet. - thanks
<script type="text/javascript">
function checkRadios(form) {
var btns = form.r0;
for (var i=0; el=btns[i]; i++) {
if (el.checked) return true; {
if (document.getElementById ("name").value.length == 0){
}
}
alert('name must be entered');
return false;
}
return true;
}
</script>
<form id="f0" action="test.cfm" onsubmit="return checkRadios(this);">
one<input type="radio" name="r0" value="1"><br>
<input type="text" name="t" class="required">
<input type="submit" name="submit" value="Save" class="button">
</form>