<select id="J_MONTH" οnchange="SetChange()" style="width:60px">
<option value="03">03</option>
<option value="06">06</option>
<option value="09">09</option>
<option value="12">12</option> </select>
function SetChange() {
var objS = document.getElementById("J_MONTH");
var month = objS.options[objS.selectedIndex].value;
if (month == 3 || month == 12) {
$("#J_DAY").val("31")
} else {
$("#J_DAY").val("30");
}
}