hover and if statement firing only ONCE
<p>mouseover should be bound as event that checks "if" statement each time mouse enters 
a region of <code>.input-medium</code>, but "if" checks only 1 time. Of there would be no class and "if"
becomes false - hover will still be working.</p>

<p>I need to check if class exists each time.</p>

<pre><code>$('.input-medium').on('mouseover' , function() {
    if ($(this).attr('id') === 'error-highlight') {
           $(this).hover(
                  function() {
                      $('&lt;p class="reg-tooltip"&gt;test test&lt;/p&gt;').appendTo('body');
                  },

                  function() {
                      $('p').remove();
                  });
       }
});
</code></pre>
