Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(':text').focusin(function() {
- var a = $(this).offset().top + $(this).outerHeight(),
- b = $(this).offset().left;
- $('.description').offset({top: a, left: b}).fadeIn(400);
- });
- $(':text').focusout(function() {
- $('.description').css('display','none');
- // $('.description').removeAttr('style');
- $('.description').css({'left' : '0', 'top':'0'});
- });
- $(':text').focusin(function() {
- var a = $(this).offset().top + $(this).outerHeight(),
- b = $(this).offset().left;
- $('.description').css({'top': a, 'left': b}).fadeIn(400);
- });
- $(':text').focusout(function() {
- $('.description').css('display','none');
- });
Add Comment
Please, Sign In to add comment