" -//W3C//DTD XHTML 1.0 전환//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
if ($('#month').val() == 2 && $('#day').children().length == 29)
{
$('#day').append ('')
}
} else
{
if ($('#month').val() = = 2 && $('#day').children().length == 30)
{
$('#day :last-child').remove()
}
}
});
$('#month').change(function(){
var thisValue = $(this).val();
var dayValue = $( '#day').val();
var Month1 = ['4','6','9','11']
$('#day').html('< option value="">-请选择-');
var day = ''
if (thisValue == '')
{
return false; 🎜>}
if ($.inArray(thisValue, Month1) != -1)
{
day = setDay(30)
$('#day').append(day) ;
} else if ($(this).val() == '2')
{
if ($('#year').val() != '' && ifLeapYear($ ('#연도').val()))
{
day = setDay(29)
} else
{
day = setDay(28)
}
$('#day').append(day);
} else
{
day = setDay(31)
$('#day').append(day);
}
$('#day').find('option[value=' dayValue ']').attr('selected',true);
});
})
function setDay(day)
{
var dayInfo = '';
for (var i=1; i{
dayInfo = '