JQUERY ASP.NET
Publicado por ROLANDO (1 intervención) el 19/10/2016 17:18:10
ESTIMADOS TENGO EN SIGUIENTE SCRITP , LO ESTOY EJECUTANDO EN ASPX , EL RESULTADO ME LO MUESTRA EN UNA ETIQUETA LABEL, EL RESULTADO DEBO ENVIARLO HACIA OTRA PAGINA ASPX LOCUAL NO ME FUNCIONA .
LA ETIQUETA SE LLAMA #tot, necesito saber como puedo enviar este resultado a un textbox1 de aspx
agradeceré de su ayuda
LA ETIQUETA SE LLAMA #tot, necesito saber como puedo enviar este resultado a un textbox1 de aspx
agradeceré de su ayuda
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<script type='text/javascript'
src='https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js'></script>
<script type="text/javascript">
$(function () {
$('input:checkbox').click(function (e) {
calculateSum(10); // sum of 4th column
});
function calculateSum(colidx) {
total = 0.0;
$("tr:has(:checkbox:checked) td:nth-child(" + colidx + ")").each(function () {
total += parseFloat($(this).text());
});
$('#tot').text(total.toFixed(0));
}
});
function Button3_onclick() {
l2 = Label1
}
function Button2_onclick() {
}
</script>
Valora esta pregunta


0