Posted By

cyrylski on 03/20/11


Tagged


Versions (?)

jquery focus in show an element


 / Published in: JavaScript
 

  1. $j(document).ready(function (){
  2.  
  3. $j(".focus-bubble input").focusin(function () {
  4. $j(this).closest(".focus-bubble").children(".bubble").addClass("isVisible");
  5. });
  6. $j(".focus-bubble input").focusout(function () {
  7. $j(this).closest(".focus-bubble").children(".bubble").removeClass("isVisible");
  8. });
  9. });

Report this snippet  

You need to login to post a comment.