现在就有类似与CSDN结帖给分的情况,一个DataGrid中有若干行,有一个总数,要分配给DataGrid中每一行的文本框,在设置完一个文本框后,但鼠标在下一个文本框停留时就要提示总数是多少,还有多少能分配
望指教,谢谢
望指教,谢谢
解决方案 »
- 请问下列一条语句的含义
- alert样式中存在的一个问题
- 执行出错document.myform.oselect为空或不是对象。
- 急求代码,请问这个网站的这种效果是如何制作的
- 各位大神帮忙
- 有没有谁写过类似于以CSDN上问题管理那样给分的程序,有了,说一下思路,或发一个相关的文档都可以
- 如何得到iframe中某个td对象的值?(急,在线等待)
- 图片选中的条件怎么写
- 还是传递问题
- three.js 导入模型怎么变水平,哪里的问题,求解答
- JavaScript的问题:封装在类里面的Ajax,如何设置onreadystatechange事件的处理函数?
- Extjs 我做的formpanel跟samples里面的差不多,怎么效果差那么远的
<!Doctype html public '-//w3c//dtd xhtml 1.0 transitional//en' 'http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<script language='javascript' src='http://code.jquery.com/jquery-1.4.2.min.js'></script>
<script language='javascript' type='text/javascript'>
$(document).ready(
function()
{
$('#button').click(function(){
var total=0;
$(':text').each(function(){
total+=parseInt($(this).val());
});
alert(total);
});
}
);
</script>
</head>
<body>
<input type='text'>
<input type='text'>
<input type='text'>
<input type='text'>
<input type='text'>
<input type='text'>
<input type='text'>
<input type='text'>
<input type='text'>
<input type='button' id='button' value='取值'>
</body>
</html>