I am passing data from a form through a normal AJAX call. What I need to do now is pass two additional variables through it elat and elng
What is the best method to include filter.serialize() and elat elng values through AJAX data?
var elat = place.geometry.location.lat();
var elng = place.geometry.location.lng();
var filter = $('#filter');
$.ajax({
url: filter.attr('action'),
data:filter.serialize(), //Pass [elat] and [elng] through here too.
type: 'POST',
dataType: 'json',
success: function(response) {
}
});