So how do i get variable value from php file with jquery...? the jquery code is in other file (tpl)
for example i have register.php and register.tpl (template file f
Best bet is to output the PHP variable as a hidden field or a JavaScript variable:
// access it like this: alert($('#my_var').val());
or
// access it like this alert(my_var);
That should do it :-)