[jQuery] validation works in FF, but not in IE??
Hi, i use the validation plugin form http://docs.jquery.com/Plugins/Validation
All works perfect, i thought.....
With Firefox it works really perfect, but when i change to explorer
mode, there is no validation at all?
Spent all evening to this problem, but really cant find out why its
not working.
Please can someone help me a bit?
This is the code:
$().ready(function() {
// validate the form when it is submitted
$("#commentForm").validate();
// validate signup form on keyup and submit
$("#mailForm").validate({
rules: {
naam: "required",
telnr: "required",
email: {
required: true,
email: true
},
geslacht:{
required: true
},
},
messages: {
naam: "Graag uw naam nog invullen!",
email: "Graag nog een geldig email adres invullen!",
telnr:"Graag nog een telefoonnummer invullen!",
geslacht:"Aanspreek titel nog aanvinken!"
}
});
});
And this is the form:
<form class="cmxform" id="mailForm" method="post"
action="bedankt.php">
<fieldset>
<legend>Contact formulier</legend>
<label for="uwnaam">Uw naam</label>
<input id="naam" name="naam" />
<label for="email">Email</label>
<input id="email" name="email" />
<label for="telnr">Telefoon nr:</label>
<input id="tel" name="telnr" />
<fieldset id="titel">Aanspreektitel:
<label for="aanspreektitelDhr">
Dhr. <input type="checkbox" id="dhr" name="geslacht"
value="Dhr.">
</label>
<label for="aanspreektitelMw">
Mw. <input type="checkbox" id="mw" name="geslacht" value="Mw." >
</label>
</fieldset>
Over welke applicatie wilt u meer informatie?
<select name="info[]" size="4" multiple="multiple">
<option> Scan </option>
<option>Brandkleppen en brandwerende roosters </option>
<option>Brandwerend bekleden van staalconstructies </
option>
<option>Brandwerende doorvoeringen</option>
</select>
<small>Met de CTRL toets kunt u meerdere applicaties kiezen </
small> </P>
Overige opmerkingen
<textarea name="overig" rows="6" cols="60">Type hier uw overige
vragen of opmerkingen... </textarea>
<input class="submit" type="submit" value="Verzend bericht"/></
p>
</fieldset>
</form>