Hi there, having murders with this jQuery.
I am trying to show a set of db results when the user clicks on a div layer, seems to access the function but will not return the results of the PHP file into the div results. Any thoughts?
<script type="text/javascript">
$(document).ready(function() {
$('#clickme').click(function() {
//alert('clicked');
$.get("doquery.php", {id: 1, action: all}, function(result) {
$("#results").html(result);
});
});
});
</script>
<div id="clickme">
Show results
</div>
<div id="results"></div>