Documentos de Académico
Documentos de Profesional
Documentos de Cultura
<script type="text/javascript">
$(document).ready(function(){
$("#menu").load("menu.html");
var i =0;
'</tr>');
$('#focus' + i).focus();
}
newRow();
var sumRow = function(){
var total=0;
i=0;
$("#tabla tbody tr").each(function(){
var cant = $(this).find('.cant').val();
var pu=$(this).find('.pu').val();
if(cant>=20000 && pu>=30){
var subt = 3000;
}else{
if(cant>=20000 || pu>=30){
var subt = 1200;
}else{
var subt = 0;
}
}
total+=subt;
i++;
$(this).find('.subt').val(subt);
});
Examen Segundo Bimestre
NOMBRE COMPLETO:_________________________________________________________
$('#total').text(total);
$('#totalF').text(total-desc);
}
$(document).on('keyup','.cant,.pu',function(){ sumRow();});
$(document).on('blur','.pu',function(){ newRow(); });
$(document).on('keyup','#descuento',function(){ sumRow();});
$(document).on('click','.borrar',function(){
$(this).parents("tr").remove();
sumRow();
});
});
</script>