Email confirm jquery
<p>My goal is for the user to enter his email and then confirms it. If both aren't the same, the form show an error.</p>

<p>The code below works find except that if the user</p>

<ul>
<li>Enter: "bla@stack.com" on the email field;</li>
<li>Enter: "bla@stack.com" on the confirm email field;</li>
<li>go back to the email field and change the ""bla@stack.com" to "azerty@stack.com";</li>
<li>doesn't change the confirm email field.</li>
</ul>

<p>There is no error.</p>

<p>jquery:</p>

<pre><code>//Vérifie si l'email et sa répetition son identiques
$('#RepetitionEmail').keyup(function(){

    var RepetitionEmail = $('#RepetitionEmail').val();

    if($("#RepetitionEmail").val()!=$("#Email").val())
    {
        $('#RepetitionEmail').css('border-color','orange');
        $('.ErreurRepetitionEmail').text('Pas encore les mêmes ...');
        checkRepetitionEmail = "Repetition email pas identique";
    }else
    {
        $('#RepetitionEmail').css('border-color','#00ff00');
        $('.ErreurRepetitionEmail').text('... ça y est!');
        checkRepetitionEmail = "Repetition email ok";
    }
});
</code></pre>
