I have a question about how to do this, checkbox or just one, enter a value in the "Total" input and show the result split, without refresh on the page, tried with .on change, but I can not get the checkded amount and value and show the split value.
Example.
$('input[type=checkbox]').on('change', function() {
var total = $('input[type=checkbox]:checked').length;
$('.resultado').html(total);
});
$('input').on('change', function() {
$('.resultado2').html(this.value);
})
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script><inputtype="checkbox" name="usuario[]" value="1">
<input type="checkbox" name="usuario[]" value="1">
<input type="checkbox" name="usuario[]" value="1">
<input type="checkbox" name="usuario[]" value="1">
<input type="text" value="0">
<div class="resultado2"></div>
<div class="resultado"></div>