[wd_asp elements=’search’ ratio=’100%’ id=1]

Send variables to page silently – .load

22nd November 2013

Jquery - Ajax

jquery icon

$(".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
});