[ Nebojsa11 @ 03.07.2007. 00:53 ] @
Pozdrav svima... Da li je neko vec primetio da Firefox ima bugova u vezi JavaScript-a? Recimo, ovaj JavaScript radi korektno u IE i u Operi, a u FF ne radi... function ValidateForm2(){ var dt=document.form2.strMonth.options[form2.strMonth.selectedIndex].value + "/" + document.form2.strDay.options[form2.strDay.selectedIndex].value + "/" + document.form2.strYear.options[form2.strYear.selectedIndex].value; if (!isDate(dt)){ return false; } dt=document.form2.strMonth1.options[form2.strMonth1.selectedIndex].value + "/" + document.form2.strDay1.options[form2.strDay1.selectedIndex].value + "/" + document.form2.strYear1.options[form2.strYear1.selectedIndex].value; if (!isDate(dt)){ return false; } } Ova funkcija u FF uvek vraca vrednost true i ako unesem 31.02.2007. IE i Opera rade korektno. |