Hi Techies,
I have some difficulties creating a js validation,
I have two form field one a drop down selet with the following items and values
___________________________________________________________________________________________
<body>
<form id="form" name="form" method="post" action="" onsubmit="return checkform(this);">
Requisition Type<select name="type">
<option value="">Select</option>
<option value="Petty Cash">Petty Cash</option>
<option value="Routine">Routine</option>
</select><br /><br />
<label for="petty">Amount</label>
<input type="text" name="amount" id="amount" />
<label for="button"></label><br />
<input type="submit" name="submit" id="submit" value="Submit" />
</form>
_________________________________________________________________________________________
I wuld like to have vlidation where by if I select petty cash I should limit the amount entered in the field named petty te to the amount of money I ask foro up to 10000
if I select Routine I shuld not be limit
Regards
--
Our greatest fear is not that we are inadequate,
but that we are powerful beyond measure.
It is our light, not our darkness, that frightens us.
Calvin Omari Systems Developer/Designer
http://www.facebook.com/barongo