Is it possible to select item with jQuery like this:
// pseudocode
$('input[name=val1 or val2 or val3...]')
Now I’m trying to do the next:
$("input[name='A'] input[name='B'] input[name='C']").blur(function() {
var result = parseFloat($("input[name='A']").val()) +
parseFloat($("input[name='B']").val()) -
parseFloat($("input[name='C']").val());
alert(result.toFixed(2));
});
but that’s not working. It is working only with one item $("input[name='A']) in selector.
Try
insted of