question says it all... code:
$(document).ready(function() { dataToLoad = 'showresults=true'; $.ajax({ type: 'post', url: 'submit.php', datatype: 'html', data: dataToLoad, async: true, success: function(data){ $('#results').html(data); }, }); });
question says it all... code:
$(document).ready(function() { dataToLoad = 'showresults=true'; $.ajax({ type: 'post', url: 'submit.php', datatype: 'html', data: dataToLoad, async: true, success: function(data){ $('#results').html(data); }, }); });