i know this is too dumb to ask. but i'll still ask this question..
i know how to pass the php variable to javascript variable inside the javascript function
function foo(){
var bar = <?php echo $foo; ?>
}
But how about from php variable to javascript inside a javascript function.
function foo(){
var bar;
<?php echo $foo; > = bar;
}
is this correct? because my javascript function is not working..