Hi,
I have written below code but i do not know how to validate using javascript, cud anyone please help me out.
<select size="1" name="hours" class="selectstyle" style="width:40px" onchange="alert(document.modifyschedule.hours.options[document.modifyschedule.hours.selectedIndex].value">
<?
for($j=1;$j<=24;$j++)
{
if($timesplit[0]==$j)
echo "<option value=".$j." selected>".$j."</option>";
else
echo "<option value=".$j." >".$j."</option>";
}
?>
</select>
<select size="1" name="minutes" class="selectstyle" style="width:40px" onchange="alert(document.modifyschedule.minutes.options[document.modifyschedule.minutes.selectedIndex].value">
<?
if($timesplit[1]=="00")
echo "<option value=\"00\" selected>00</option>";
else
echo "<option value=\"00\">00</option>";
if($timesplit[1]=="15")
echo "<option value=\"15\" selected>15</option>";
else
echo "<option value=\"15\" >15</option>";
if($timesplit[1]=="30")
echo "<option value=\"30\" selected>30</option>";
else
echo "<option value=\"30\">30</option>";
if($timesplit[1]=="45")
echo "<option value=\"45\" selected>45</option>";
else
echo "<option value=\"45\">45</option>";
?>
</select></td></tr>