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>
                <p>
                        <label for="uwnaam">Uw naam</label>
                        <input id="naam" name="naam" />
                </p>
                                <p>
                        <label for="email">Email</label>
                        <input id="email" name="email" />
                </p>


                <p>
                        <label for="telnr">Telefoon nr:</label>
                        <input id="tel" name="telnr" />
                </p>


                        <p><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>

                </p>
                <p>Over welke applicatie wilt u meer informatie?</p>
     <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>
                <p><small>Met de CTRL toets kunt u meerdere applicaties kiezen 
</
small>  </P>

                <p>Overige opmerkingen</p>
                <p><textarea name="overig" rows="6" cols="60">Type hier uw 
overige
vragen of opmerkingen... </textarea></p>

                        <p><input class="submit" type="submit" value="Verzend 
bericht"/></
p>
        </fieldset>
</form>

Reply via email to