title: jQuery Ajax: return value to caller?
body: <p>I have some jQuery code. I have called an Ajax function file, file.php, that has some fields, like:</p>
  
  <pre><code>&lt;input type="radio" value="plz"&gt;Milk&lt;/input&gt;.
  </code></pre>
  
  <p>Will I assign into again jQuery function? If so, how do I do it? I attached a sample file:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;LINK REL=StyleSheet HREF="examples.css" TITLE="Contemporary" TYPE="text/css"&gt;
          &lt;script src="jquery-1.2.6.js" type="text/javascript"&gt;&lt;/script&gt;
          &lt;script src="jquery-impromptu.1.6.js" type="text/javascript"&gt;&lt;/script&gt;
          &lt;script&gt;
              $(document).ready(function(){
                  $.ajax({
                      type:"GET",
                      url:"file.php",
                      data:id,
                      success:function(){
                          var txt=id;
                          $.prompt( txt,{ opacity: 0.2 });
                      },
                      error:function(){
                          window.location("ERRoR");
                      }
                  });
              });
          &lt;/script&gt;
  
      &lt;body&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>