Get value of multiple hidden form values, within a table
<p>I ve been trying to obtain the value of my form input elements, but I am just not having any luck with it.</p>

<p>I have the following form within a while loop in PHP, so there will be multiple forms.</p>

<pre><code>&lt;form method='POST' action=".$_SERVER['SCRIPT_NAME']." name='form_set_deadline' class='form_set_deadline'&gt;
    &lt;input type='hidden' value='".$data3['unique_name']."' name='file_id' class='file_id' /&gt;
    &lt;input type='hidden' value='".$user_id."' name='client_id' class='client_id' /&gt;
    &lt;table&gt;
        &lt;tr&gt;
            &lt;td align='left'&gt;&lt;input type='button' name='set_file_options' value='Submit' class='set_file_options' /&gt;&lt;/td&gt;
        &lt;/tr&gt;
    &lt;/table&gt;
&lt;/form&gt;
</code></pre>

<p>Now, I am trying to get the value of the hidden fields of jquery, but just don't know how to access the hidden field values. Remember, there are multiple of these forms on the page. Here is the jquery form, contained within a function. </p>

<pre><code>function setFileOptions(){
    $('.set_file_options').each(function(e){
        $(this).unbind("click").click(function(e){
            e.preventDefault();
            //set form variables
            var file_id = // DON'T KNOW HOW TO GET THE HIDDEN FIELD INPUT VALUE?

            alert(file_id); 
        }); //END THIS CLICK FUNCTION
    });
 } //END MAIN FUNCTION
</code></pre>

<p>Thanks for the help/tips!</p>

<p>So after all the input received from you all, I have decided to use the following to get all the form data:</p>

<pre><code>var form_data = $(this).closest('form').serialize();
</code></pre>

<p>Thanks again!</p>
