jQuery: Using the jQuery serializeArray() function

Enter a 1 or 2:
Got this from the server:


The jQuery Code START
    
    <script type="text/javascript" src="./jquery-1.5.1.js"></script>
    <script src="http://code.jquery.com/jquery-latest.js"></script>
  
    <script type="text/javascript">
      function checker()
      {
          $("div").load("poster.php", $("#targetForm").serializeArray());
      }
    </script>
    
    <style type="text/CSS">
        <!--
        .code { color: red; }
        .back { background-color: yellow; }
        -->
   </style>
  </head>

  <body>
    <h1>jQuery: Using the jQuery serializeArray() function</h1>
    <form id="targetForm">
       Enter a 1 or 2: 
       <input type="text" name="data" id="data"></input>
       <input type = "button" value="Check data" onclick="checker()"
    </form>
    <br />
    Got this from the server: <div></div>