You can check a var in jQuery using the following method:
<?php
    $my_php_var = "Value";
?>
<script ...>
    var my_js_var = "<?php echo $my_php_var; ?>";
    if (my_js_var == "Value) {
        alert("Value set");
    }
</script>

Thats one of the Q's down!

M

On Jan 13, 3:45 am, Nikola <nik.cod...@gmail.com> wrote:
> I'm validating a form in php and am wondering how I can bind a jQuery
> function to a successful validation or how to check a var set in php
> with jQuery.

Reply via email to