/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(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(); } }