how can we store php variables in jquery variables in jquery part

Posted by surya on Stack Overflow See other posts from Stack Overflow or by surya
Published on 2012-12-13T05:02:22Z Indexed on 2012/12/13 5:03 UTC
Read the original article Hit count: 272

Filed under:
|
|
$('#b').bind('click',function(){
                alert('hii');
                var slide_start=slider_content.indexOf(0);
                if(slide_start==2)
                {
                    $('#reg_rem_form').hide();
                }
        var show=1+slide_start;
        var show_first='#'+show;

        **var value_to_insert=<?php  echo $value;?  >=$(show_first).val();**
                <?php

                        /*
                            1. Date of birth
                            2. gender
                            3. Unvi1
                            4. Unvi2
                            5. highest degree unvi1
                            6. highest degree unvi2
                            7. Year of passing unvi1
                            8. Year of passing unvi2
                            9. Current working
                            10. Work experience
                        */


                ?>

Just as we store php variables in jquery variables , same thing but in reverse i want to store jquery variables in php variables ??? The highlighted part is the main line. how to do that , above code giving me the error === missing ";" before statement.

Is this right way to do this =$('#bold').val();

© Stack Overflow or respective owner

Related posts about php

Related posts about jQuery