Link to home
Start Free TrialLog in
Avatar of coolispaul
coolispaulFlag for United States of America

asked on

Jquery onkeypress bug

Hi,

i have created a function that is triggered by a keypress. It seems to work fine with every key other than tab! any idea why?

My function is attached

Thanks
$("#CustomFields_1_1").live('keyup', function (e) 

      { 
	  $("#newscompany").css('display','none');
          $("#CustomFields_2_1").css('display','block'); 
          $("#CustomFields_2_1").focus();
          event.preventDefault();
		
      });

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of plusone3055
plusone3055
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of coolispaul

ASKER

ah cool thats seems to work:

http://jsbin.com/amoci

cheers