Hello,
I have a php variable $birthday, I am showing it's value like this:
<div id= "dob" class="pick_number">Day of Birth: <?php echo $birthday ?></div>
<div id="test"></div> // value should be printed back in here.
I need to pass the value of $birthday via ajax, I had the following but it seems not working, no value is printed back in test div:
var $birthday =$('#dob'); // to select the above code
$.get("process.php",
{birthday: $birthday},
function(chart) {
$test.text(chart);
});
Thanks.