I have two buttons that I assign an event to. I know how to capture the value on the clicked button, but not on the non-clicked button. Any thoughts would be appreciated.
var $b1 = $('<input/>', { 'type': 'button', 'value': '0' });
var $b2 = $('<input/>', { 'type': 'button', 'value': '1' });
var $bm = $b1.add($b2);
$myDiv.append($bm);
$bm.on('click', function() {
var clicked = $(this).val();
var not_clicked = ???
use .not() to filter out the current clicked input