<link rel="stylesheet" href="css/validationEngine.jquery.css" type="text/css"/> <link rel="stylesheet" href="css/template.css" type="text/css"/> <script src="js/jquery-1.6.min.js" type="text/javascript"> </script> <script src="js/languages/jquery.validationEngine-en.js" type="text/javascript" charset="utf-8"></script> <script src="js/jquery.validationEngine.js" type="text/javascript" charset="utf-8">
<script> jQuery(document).ready(function(){ // binds form submission and fields to the validation engine jQuery("#formID").validationEngine(); }); </script> <form id="formID" class="formular" method="post"> <fieldset> <legend> Required! </legend> <label> <span>Field is required : </span> <input value="" class="validate[required] text-input" type="text" name="req" id="req" /> </label> <label> <span>Favorite sport 1:</span> <select name="sport" id="sport" class="validate[required]"> <option value="">Choose a sport</option> <option value="option1">Tennis</option> <option value="option2">Football</option> <option value="option3">Golf</option> </select> </label> <label> <span>Favorite sport 2:</span> <select name="sport2" id="sport2" multiple class="validate[required]"> <option value="">Choose a sport</option> <option value="option1">Tennis</option> <option value="option2">Football</option> <option value="option3">Golf</option> </select> </label> <br/> validate[required] </fieldset> </form>