Validation plugin return true

Validation plugin return true

Hello,

Im new to the jquery universe, but im trying.

I installed the following plugin:  http://docs.jquery.com/Plugins/Validation

And everything is working, they get an error messages if they haven't met the requriements, like:
number:true, 
minlength: 5
i made it with an li (so i can style it via CSS).

But my problem is, if they have typed the correct thing, lets say the email is correct, then i would like an litlle green checkmark to appear to the right of the desired input field. every input field have their own id. 
But i dont know how to type the javascript, you can see some of it here:

// validation code
$("#fm_form").validate({
rules: {
fm_titel: {
required:true,
maxlength: 25,
minlength: 5
},

<---- and if those are correct i want a small checkmark to appear. :)

The input field is like this:

<div class="fm-req"> 


        <label for="fm_titel">Opgavetitel:</label>
     <input name="fm_titel" id="fm_titel" type="text" title="Titlen på din opgave" class="required" /> 
     
     
   </div> 




hope you can help? :)

Thanks alot!

    • Topic Participants

    • pl