[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 169
  • Last Modified:

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

0
coolispaul
Asked:
coolispaul
1 Solution
 
coolispaulAuthor Commented:
ah cool thats seems to work:

http://jsbin.com/amoci

cheers
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now