append textbox value and checkbox value to a string
<p>I am having trouble figuring out how to append the values in the text field(exclude empty textboxes and corresponding checkboxes) and all the checked and unchecked values to a string in the order: name|T|F_name|F|F</p>

<p>I have this code, I have been trying to figure out how to make it into a single string. On submit I will send this string to my controller.</p>

<pre><code>&lt;input type="text" value="jim"&gt;
&lt;input type="checkbox" checked="checked"&gt;
&lt;input type="checkbox"&gt;
&lt;input id="button_1" type="button" value="delete" &gt;&lt;br&gt;
&lt;input type="text" &gt;
&lt;input type="checkbox"&gt;
&lt;input type="checkbox"&gt;
&lt;input id="button_2" type="button" value="delete"&gt;&lt;br&gt;
&lt;input type="text" value="deb"&gt;
&lt;input type="checkbox" checked="checked"&gt;
&lt;input type="checkbox" checked="checked"&gt;
&lt;input id="button_3" type="button" value="delete"&gt;&lt;br&gt;
&lt;input type="submit"&gt;


$(':input[type="text"]').each(function() {
    if($(this).val() != "") { 
        nameString = $(this).val();

});

$(':checked').each(function() {

});
</code></pre>

<p><strong>UPDATE</strong></p>

<p><a href="http://jsfiddle.net/s7JZF/6/" rel="nofollow">jsfiddle</a></p>
