function dateRangeFunction() {
var range1 = $('range1').val;
var range2 = $('range2').val;
if(range1 == null || range1=="") {
alert("Please Select A Date To Search From");
return;
}
$.ajax({
type : 'GET',
url : 'daterangedetails.php',
data : {pt:'7',rngstrt:range1, rngfin:range2},
success: function (data) {
document.getElementById('rangeDetails').innerHTML = data;
}
});
}