Hello,
My javascript codes
I can't do this field. Can you help, please?
<script type="text/javascript">
function Checkit(theform) {
var gorevadi = document.getElementById('gorev_adi').value;
if (gorevadi.length < 1){
error ='-Please enter a short name of the task\n\n';
}
if (gorevadi.length > 20){
error+="-Please do not exceed 20 characters\n\n";
}
CODE HERE
var dosyaadi = document.getElementById('dosya_adi').value;
if (dosyaadi.length < 10){
error+="-Please enter file name of running local file or full URL\n\n";
}
if(error) {
alert('**These fields are required:**\n\n\n' + error);
error = "";
return false;
} else {
return true;
}
}
</script>
I want to check this area.
value="-1" This selected. But when it selected with days of week, I want to it checks with javascript. (Not submit with days of week)
<select size="8" name="haftanin_gunu[]" id="haftanin_gunu" multiple>
<option value="-1" selected="selected">*</option>
<option value="0">Sunday</option>
<option value="1">Monday</option>
<option value="2">Tuesday</option>
<option value="3">Wednesday</option>
<option value="4">Thursday</option>
<option value="5">Friday</option>
<option value="6">Saturday</option>
</select>
See: http://awesomescreenshot.com/0cc1orby92
Thank you in advance