I have the following jquery:
$(".order_submit").click(function() {
alert( "Alert" );
console.log("TEST")
});
When I put that function in to console I get the following:
$(".order_submit").click(function() {
alert( "Alert" );
console.log("TEST")
});
[
<input id="order_button" type="button" class="order_submit" value="Submit Order">
]
The button is created via this javascript:
var total = 0;
for (var x in prodData) total += prodData[x].price * prodData[x].quantity
total = Math.round(total * 100) / 100
var subtotal = '<tr><td><input id="order_button" type="button" class="order_submit" value="Submit Order"></td><td>Subtotal</td><td>$' + total + '</td></tr>';
Does that have anything to do with it?