• Dear

    I am using this JavaScript function for passing variable in URL

    (function ($) {
    var label = “Details”;
    var detailPageUrl = “https://your-site/2016/02/04/details-page/”;
    detailPageUrl += (detailPageUrl.indexOf(‘?’) === -1) ? “?st=” : “&st=”;
    $(‘td[title=”submit_time”] div’).each(
    function () {
    var url = detailPageUrl + $(this).html();
    var link = ‘‘ + label + ‘‘;

    This Script is working good but this script passing one variable through URL.
    I want multiple variable passing through URL.
    Is there any code that u refer me.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    if you have another variable “x” with value “2” then add it to the URL:
    detailPageUrl += "&x=2"; as the 5th line.

    Thread Starter 4nodestechnologies

    (@4nodestechnologies)

    this code is not working
    Multiple parameters means like database value [title=”submit_time” ] [other field] not custom variable number.
    I want these multiple database variables passing through URL

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Passing Variable using URL’ is closed to new replies.