Hi all. I tried everything with this code. but validation does not works:
- Code: Select all
<script src="test_radio_files/mootools.js" type="text/javascript"></script>
<script src="test_radio_files/mooValid.js" type="text/javascript"></script>
<form name="ChronoContact_kettel1" id="ChronoContact_kettel1" method="post" action="http://localhost/test/ru/index.php?option=com_chronocontact&task=send&chronoformname=kettel1" >
<input type="text" name="myin" class="required">
<div>sex: M <input type="radio" name="sex" value="m" class="validate-one-required"> - F <input type="radio" name="sex" value="f" class="validate-one-required"></div>
<input type="submit" value="go" />
</form>
<script type="text/javascript">
function formCallback(result, form) {
window.status = "valiation callback for form '" + form.id + "': result = " + result;
}
var valid = new Validation('ChronoContact_kettel1', {immediate : true, onFormValidate : formCallback});
</script>
How to use "validate-one-required" (moovalidate, with prototype all ok) ??
Could you give a little example where this feature works?
To thomaskremer. I have some code that can help u. this code inserts validation-classes into tags where class attribute were specified (look my more ealier posts).