$(document).ready(function() {
  $("input.textinput").focus(function() {
    $(this).addClass("hover");
  });

  $("input.textinput").blur(function() {
    $(this).removeClass("hover");
  });
});
