if(v=="")return; var birthday=new Date(Date.parse(v.replace(/-/g, '/'))) $("#ddlYear").val(birthday.getFullYear()); $("#ddlMonth").val(birthday.getMonth() 1); bh_setDayCount(); $("#ddlDay").val(birthday.getDate()); }