cevabı bu sanırım burda bulunsun
<script type="text/javascript">
function changeValue(dropdown) {
var option = dropdown.options[dropdown.selectedIndex].text,
field = document.getElementById('titre');
if (option == '15 Kasim 2016' || "31 Aralik 2015"||"31 Aralik 2016") {
field.maxLength = 6;
}else {field.maxLength = 5;}
}
</script>