hi friends!!!!!!!!!!
i am doing a lottery project in which i have 10 textbox and i want to add contents of each textbox and
show result in another textbox say 11th textbox.
I am having the fallowing codes below on jsp page.
//.................................................. .................................................. ................................
<html>
<table>
<tr >
<td style="color:beige">50 Rs 501</td>
<td><input type="text" value="" name="n50" size="5" onkeypress="return isNumberKey(event);"/></td>
<td><input type="text" value="" name="n51" size="5" onkeypress="return isNumberKey(event);" /></td>
<td><input type="text" value="" name="n52" size="5" onkeypress="return isNumberKey(event);"/></td>
<td><input type="text" value="" name="n53" size="5" onkeypress="return isNumberKey(event);"/></td>
<td><input type="text" value="" name="n54" size="5" onkeypress="return isNumberKey(event);"/></td>
<td><input type="text" value="" name="n55" size="5" onkeypress="return isNumberKey(event);"/></td>
<td><input type="text" value="" name="n56" size="5" onkeypress="return isNumberKey(event);"/></td>
<td><input type="text" value="" name="n57" size="5" onkeypress="return isNumberKey(event);"/></td>
<td><input type="text" value="" name="n58" size="5" onkeypress="return isNumberKey(event);"/></td>
<td><input type="text" value="" name="n59" size="5" onkeypress="return isNumberKey(event);"/></td>
<td><input type="text" value="" name="n60" size="5" onkeypress="return isNumberKey(event);" onFocus=" show4();"/></td>
</tr>
<table>
</html>
//here on above code i have 11 textbox
named (n50,n51.....n60)
I want to add contents of textbox from(n50,n51.....n59) and show result in another textbox named (n60)
.................................................. .................................................. ............................
// friend my question is that the valus stored in textbox is numeric and when i enter the value in any two of the textbox say named (n50 and n51) then the addition of its value must be seen in the result textbox say (n60) here.
it does not wait for another textbox value which is left blank.
the result of addition should be displayed simelteneously as i enter the value in text box.
how is it possible friend?????????????????
plzzzzzzzzz suggest???????????????????????