1 2 3 4 5 6 7 8 9 10 11 12 |
$(".submit").click(function(){ var dog=document.getElementById("day"); var cat=document.getElementById("month"); var owl=document.getElementById("year"); var res = dog.value+"/"+cat.value+"/"+owl.value; // alert(res); $('#content').load('../../partialfolder/data.php', { field: res, //this var given to above url nameof: "dob" // this is the ?dob=xxxxx bit, collect it on other side }); |
