I have the following code that works except for the callback part of
it is not doing exactly what I want. Right now it reloads the test.php
page instead of using the same instance of it inputing the variables.
How do I properly update the currentposition div?
<script type="text/javascript">
$(document).ready(function(){
$("form#positionform").submit(function(){
$.post("test.php",{ positiontitle: $("#positiontitle").val(),
staffid: $("#staffid").val() }),
$("#currentposition").load("test.php");
return false;
});
});
</script>