Calculating form values using jquery
<p>I have a php generated form code:</p>

<pre><code>echo "&lt;td&gt;&lt;select id='num".$result['id']."' name='num".$result['id']."'&gt;
      &lt;option value='1'&gt;1&lt;/option&gt;
      &lt;option value='2'&gt;2&lt;/option&gt;
      &lt;option value='3'&gt;3&lt;/option&gt;
      &lt;option value='4'&gt;4&lt;/option&gt;
      &lt;option value='5'&gt;5&lt;/option&gt;
      &lt;option value='6'&gt;6&lt;/option&gt;
      &lt;option value='7'&gt;7&lt;/option&gt;
      &lt;option value='8'&gt;8&lt;/option&gt;
      &lt;option value='9'&gt;9&lt;/option&gt;
      &lt;option value='10'&gt;10&lt;/option&gt;
      &lt;/select&gt;
      &lt;/td&gt;";
echo "&lt;td&gt;&lt;input type='checkbox' value='".$result['sell_price']."'                    name='".$result['id']."' id='".$result['id']."' /&gt;&lt;/td&gt;";
</code></pre>

<p>As you see the value of the select box is already defined and the value for the checkbox is obtained from the database.</p>

<p>I want to calculate the values of the checkbox and product the sum with the value of the selectbox using jquery. 
I have this function to "onclick on any td the checkbox is selected" :</p>

<pre><code>$(function () {
    $("td").on(\'click\', function (e) {
        if (! $(e.target).closest(\'select\').length ) {
           var tr  = $(this).closest("tr"),
               chk = tr.find("input[type=\'checkbox\']").get(0);
           if (e.target != chk) {
               chk.checked = !chk.checked;
           }
           if ( tr.find("input[type=\'checkbox\']").is(":checked")) {
               tr.css("font-weight", "bold");
           } else {
               tr.css("font-weight", "");
           }
        }
    });  
});
</code></pre>

<p>Any help please?</p>
