Here is my HTML code.
<p>Men's Shirt (on hanger)
<span class="cart_minus"> - </span>
<span class="cart_add"> + </span>
<label class="text_right"> 2 Suits </label> </p>
<div class="total"> Total <span>£22.00</span></div>
<a href="" class="order_now"> Order now </a>
JQuery code.
$(document).ready(function() {
$('.cart_minus').click(function () {
alert("hai");
});
});
When I put same code in console then alert is shown. How could I solve this.