Passing Variable in load
Posted
by Tyler
on Stack Overflow
See other posts from Stack Overflow
or by Tyler
Published on 2010-03-16T21:55:49Z
Indexed on
2010/03/16
22:01 UTC
Read the original article
Hit count: 279
I have a load action tied to the submit button of a form.
jQuery('#content').load("/control/ajxdata/installs.php?country=" + country);
jQuery('#content').load("/control/ajxdata/installs.php",{ 'country': country });
The name, and the id of the form element I am trying to utilize is "country"
In the error console, I am getting "Error: country is not defined"
© Stack Overflow or respective owner