使用javascript从gridview中选择的复选框的总和 [英] Sum of selected checkbox from gridview using javascript

查看:54
本文介绍了使用javascript从gridview中选择的复选框的总和的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.Gridview ID中有2个gridview ID = grid1和grid2。

gridview包含列作为复选框,名称,金额

i需要从中选择的复选框的总金额gridview ...

请帮助我.........

i have 2 gridview in asp.Gridview ID=grid1 and grid2.
Both gridview contains column as checkbox,Name,Amount
i need total amount of selected checkbox from both gridview...
pls help me.........

推荐答案

请看这些:



使用javascript进行Gridview复选框验证 [ ^ ]



使用Javascript检查/取消选中GridView中的CheckBox [ ^ ]



你必须修改JavaScript函数lil bit 。只需选中复选框,直到GridView结束并返回。
See these :

Gridview checkbox validation using javascript[^]

Check/uncheck CheckBox in a GridView using Javascript[^]

You have to modify the JavaScript function lil bit. Just count checked checkboxes till the end of GridView and return that.


这篇关于使用javascript从gridview中选择的复选框的总和的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆