xxxxxxxxxx
function passIDto(IDval){
window.location.href = "CustomerBasket.php?oridd=" + IDval ;
}
xxxxxxxxxx
<pre lang="HTML"> $('#getPrice').click(function () {
var discountAmount = $('#lblDiscountAmount').text();
var productId = $(this).parent('td').parent('tr').attr('data-productid')
alert(productId);
alert(discountAmount);
//if (!discountAmount) { return; }
location.href = "Products/helloPrice?ProductId=" + productId;
// This is not invoking the action method.
});