Hi,
Please help me figure, how to write this form validations in javascript.
when a user selects the value "ON" from a select drop down list,
I have to figure that the sum of all the intWorkDone should be <=200.
<form action="update.cfm" method="post">
<cfoutput>
<cfloop from="1" to="#queryName.recordcount#" index="i">
<input type="text" name="StrName" value="#queryName.Name#">
<select name="strSelect">
<option value="ON">ON
<option value="OFF">OFF
</select>
<input type="text" name="intWorkDone" value="#queryName.WorkValue">
<input type="submit" name="" value="Update">
</cfloop>
</cfoutput>
</form>
Thanks
Please help me figure, how to write this form validations in javascript.
when a user selects the value "ON" from a select drop down list,
I have to figure that the sum of all the intWorkDone should be <=200.
<form action="update.cfm" method="post">
<cfoutput>
<cfloop from="1" to="#queryName.recordcount#" index="i">
<input type="text" name="StrName" value="#queryName.Name#">
<select name="strSelect">
<option value="ON">ON
<option value="OFF">OFF
</select>
<input type="text" name="intWorkDone" value="#queryName.WorkValue">
<input type="submit" name="" value="Update">
</cfloop>
</cfoutput>
</form>
Thanks