Return to Snippet

Revision: 45362
at April 28, 2011 20:59 by dsoms


Updated Code
$(document).ready(function(){
  $('#day').bind('keyup', jumpToMonth);
  $('#month').bind('keyup', jumpToYear);
});

function jumpToMonth()
{
  if($('#day').val().length >= 2){
    $('#month').focus();
  }
}
       
function jumpToYear()
{
  if($('#month').val().length >= 2){
    $('#year').focus();
  }
}

Revision: 45361
at April 28, 2011 20:59 by dsoms


Updated Code
$(document).ready(function(){
  $('#day').bind('keyup', jumpToMonth);
  $('#month').bind('keyup', jumpToYear);
});

function jumpToMonth()
{
  if($('#day').val().length >= 2)
  {
    $('#month').focus();
  }
}
       
function jumpToYear()
{
  if($('#month').val().length >= 2)
  {
    $('#year').focus();
  }
}

Revision: 45360
at April 28, 2011 20:58 by dsoms


Updated Code
$(document).ready(function(){
  $('#day').bind('keyup', jumpToMonth);
  $('#month').bind('keyup', jumpToYear);
});

function jumpToMonth()
{
  if($('#day').val().length >= 2){
    $('#month').focus();
  }
}
       
function jumpToYear()
{
  if($('#month').val().length >= 2){
    $('#year').focus();
  }
}

Revision: 45359
at April 28, 2011 20:58 by dsoms


Initial Code
$(document).ready(function(){
  $('#day').bind('keyup', jumpToMonth);
  $('#month').bind('keyup', jumpToYear);
});

function jumpToMouth()
{
  if($('#day').val().length >= 2){
    $('#month').focus();
  }
}
       
function jumpToYear()
{
  if($('#month').val().length >= 2){
    $('#year').focus();
  }
}

Initial URL

                                

Initial Description

                                

Initial Title
Auto focus on next input field

Initial Tags
javascript, jquery

Initial Language
jQuery