我有这样的代码html:
<td colspan="7" class="cart_but">
<button class="continue"><span>icon</span>Continue shopping</button>
<button class="update"><span>icon</span>Update your cart</button>
</td>
和 jQuery 代码指向页面,但是当点击按钮时没有任何反应:
<script type="text/javascript">
$(document).ready(function() {
$('button.continue').click(function() {
//window.location = "abc";
window.location.href = "http://stackoverflow.com";
});
$('button.update').click(function() {
//window.location = "<?php echo base_url('checkout'); ?>";
});
});
</script>
请帮我!