title: Problem with uploadify jQuery and javascript
body: <p>So I'm using uploadify to upload multiple images to a folder.  Along with each upload, I want to pass along a 'batch name' from a text box value.</p>
  
  <p>When I hard code the batch_name (Fire) below, the database updates fine, but when I replace 'fire' with $('#batch_name').val() the value doesn't seem to pass.</p>
  
  <h2>javascript</h2>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function() {
      $("#uploadify").uploadify({
          'uploader'       : 'uploadify/uploadify.swf',
          'script'         : 'uploadify.php',
          'scriptData'     : {'session_id': '&lt;?php echo session_id(); ?&gt;', 'batch_name': 'Fire'},
          'cancelImg'      : 'cancel.png',
          'queueID'        : 'fileQueue',
          'auto'           : false,
          'multi'          : true
      });
  });
  &lt;/script&gt;
  </code></pre>
  
  <h2>textbox</h2>
  
  <pre><code>&lt;input type="text" name="batch_name" id="batch_name"/&gt;
  </code></pre>