Hi,

I'm new to Jquery.

I'm trying to send the post data from an input box to test.php however
it doesn't go over when test.php loads into #submit_result.

This is what I have so far. What am I doing wrong? I know I am doing
something dumb.

<script type="text/javascript">
  function my_onclick() {
    $.post("test.php",
    {input: $("input").val()},
    function(data) {
      $("#submit_result").load("test.php");
    });
  }
</script>

Thanks,
Jon

Reply via email to