Hi this is scorpionz here
I am working on some exams stuff...
Now the thing i want to mention here is that: a text boxes created by php code, means a text boxes shaped in this way:
<input type="text" name="total_points<?=$i?>" style="width:50px;" >
Now these are created severals. I have a button here which i created in this way:
<input type="submit" name="calculate_points" value="Submit" onclick="return totalpoints_calculation()" />
when i press button i need to calculate the points that i input in the text boxes. and mention that result in alert box.
here is the function i started
<script type="text/javascript">
function totalpoints_calculation()
{
//var tot_points = document.questioncreationform.total_points<?=$i?>.value;
alert('tot_points');
return false;
}
</script>
I am unable to create a javascipt to calculate the total points in boxes.
Any Response will be highly appreciated with great interest
Thanks in Advance....
Regards
Scorpionz