Search
 
SCRIPT & CODE EXAMPLE
 

PHP

send data with window.location.href

<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.

            });
Comment

PREVIOUS NEXT
Code Example
Php :: hint extension in visual studio code for laravel 
Php :: php sms sending script 
Php :: php laravel string substring 
Php :: decrypted password php 
Php :: PHP XML Expat Parser 
Php :: what are the different types of PHP variables? 
Php :: php readlink 
Php :: echo require php 
Php :: php get last 3 elements of array 
Php :: check dir php 
Php :: php replace url parameter value 
Php :: guzzle login example 
Php :: PHPDoc @method 
Php :: php distinct 
Php :: laravel request not returning errors 
Php :: php get variable name as a string 
Php :: php constants 
Php :: laraodck imagick 
Php :: how to catch duplicate entry to database in laravel 
Php :: php class extends two classes 
Php :: php read excel file 
Php :: how to run php in javascript 
Php :: how to create object in php 
Php :: php check empty variable 
Php :: Not Found The requested URL was not found on this server. Apache/2.4.46 (Win64) OpenSSL/1.1.1g PHP/7.4.11 Server at localhost Port 80 
Php :: #FF0000; 
Php :: restrict_manage_posts hook 
Php :: php integer to js integer 
Php :: how to register a file in a config in laravel 
Php :: codeigniter validate integer in php 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =