One problem is that you have:
$("button").click(function (){});
... but your HTML shows:
<input type="button" id="PlusMinus" />
You do not want to select an item button
. You want a input
button element type. Try the following:
$(':button').click( function(){} );
... assuming that you will not select a button by its identifier. Note that this can select more than one item, so an ID approach (or some other ways to uniquely identify the button you are referring to) would be preferable:
$('#PlusMinus').click( function(){} );
source
share