We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    Hi,

    I have a problem passing a js variable to a function.
    When I use alert to print that vars I am getting the correct values but while I pass them in a function its not outputting the value.
    ex var s2=10;
    alert(s2) / /prints 10

    function(s2) // passes s2 instead of 10.

    Please help

    Thanks
    Rahul