| How to add validation to radio and checkbox fields |
Joomla! formvalidation currently only can validate the following:
We have developed a plugin the replaces the standard formvalidation, which contains all the above plus:
BF Validate PluginThis plugin can be download from our free download page.BF Validate -- This plugin provides formvalidation. It adds radio and checkbox field validation functionality which Joomla! 1.5.x currently lacks. Include the code below instead of the usual JHTML::_('behavior.formvalidation'); For checkbox validation, include the class in the checkbox tag
If you want to ensure that plugin is installed, use this code Example<script language="javascript"> < form id="WV-form" method="post" class="form-validate" onSubmit="return myValidate(this);"> <input type="radio" name="group1" value="Milk" <?php echo 'class=" required validate-radio"'; ?> > Milk<br> </form>
|
Try our software on your own website to see if it will suit your needs....yours FREE