JSFiddle - React, Tailwind, and code Playground
by Shaunak Deshpande
HTML
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.2/owl.carousel.min.js"></script>
<div class="modal fade" id="product-add-to-cart-modal-ssbt" tabindex="-1" role="dialog" aria-hidden="true" style="display: none;">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-body">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<div class="row quick-view product-main">
<div class="col-sm-12">
<p class="lead text-center">One <b>{Product Name}</b> will be added to your cart.
</p>
<div class="box">
<p class="text-muted text-small text-center">
What do you want to do next?
</p>
<div class="box-footer" id="add-to-cart-buttons">
<a href="?add_product=10161">
<i class="fa fa-reply"></i>Return to current page
</a>
<a data-href="/site/cart?add_product=10161">
<i class="fa fa-shopping-cart"></i>Go to shopping cart
</a>
</div>
</div>
<!-- /.box -->
</div>
</div>
...
JavaScript
$('a:has(.fa-reply)').click(function(){
window.location.href = $(this).data('href');
});