Jump to content

Javascript not passing variables


severndigital

Recommended Posts

i have function

 

function testFunc(var1, var2)
{
    write var1;
    write var2;
}

 

then i refernce it

 

<input type="text" name="textfield" onblur="testFunc('Variable1','Variable2');">

 

when i try to execute the function all the error says is

 

variable var1 not set.

 

what am i doing wrong??

 

thanks,

-C

 

Link to comment
https://forums.phpfreaks.com/topic/129398-javascript-not-passing-variables/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.