Show field if true, hide field if false?
<p>Want to have a notification box displayed if amount in fieldA is higher than amount in fieldB.</p>

<p>Currently have some code working but the notification box toggles on and off not depending on the actual amount.</p>

<p>What am I missing?</p>

<p>jquery:</p>

<pre><code>
 $(document).ready(function() {
     $('#fieldA').change(function(){
                if($(this).val()>$('#fieldb').val()){
                  //display it on the form
                  $('.labelNotification').toggle();
                  $('.labelNotification').append('Not recommended to have <em>FieldA</em> figure higher than <em>FieldB.</em>');
                }
            })
      });
</code></pre>

<p>HTML:</p>

<p><code>&lt; p style="display: none;" class="error labelNotification"></code></p>
