• 15-11-2016, 22:33:03
    #1
     <script type="text/javascript">
          function changeValue(dropdown) {
            var option = dropdown.options[dropdown.selectedIndex].text,
                field = document.getElementById('titre');
    
            if (option == '15 Kasim 2016') {
              field.maxLength = 6;
    		  }else {field.maxLength = 5;}
    		
          }    
    	  
        </script>
    arkadaşlar selamlar yukaridaki scripte bir tarih daha eklemek istiyorum
    yardımcı olurmusunuz bir kaç bişey denedim ama çalışmadı
    teşşekürler
  • 10-12-2016, 18:28:09
    #2
    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>