how to add textbox values inside datagrid using javascript

liunx

Guest
i have a datagrid which have textbox, for ex. txtPAmount that will generate on runtime.

now while we enter one textbox, i have to add the all txtPAmount from the datagrid and add the values and put it to another textbox which is outside the datagrid.

i have to check this always when enter values to each txtPAmount in the datagrid.

can i use javascript for this or any other way avail.

can any one help to solve it and provide the code.....


thanks

rajesh
Edit/Delete MessageThe DataGrid List Control simply allows advanced rendering of an html table.

All the form elements on the page can be accessed as usual.

You will just need to loop through all the txtPAmount textBoxes and add the values and then save the result in the total text box by setting its value property to the accumulated total obtained previously.

If you need help with these things then take a look here:

<!-- m --><a class="postlink" href="http://www.quirksmode.org/js/forms.html">http://www.quirksmode.org/js/forms.html</a><!-- m -->

Good luck ;)
 
Back
Top