Get value from table with different element using jquery

Get value from table with different element using jquery

    Hi All ,
          
          I am newbie for JQuery and i encounter a problem that tooks me so long , so that i try and get some help from you guys. below codes are my HTML codes and my problem is i have different element inside table.
    i have checkbox , textbox , button inside my table . my question are how can i compute the value from default value if the user put a value in textbox ones user click the submit button and check the checkbox. help me guys please .. Thank you :)





    1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    2. <html xmlns="http://www.w3.org/1999/xhtml">
    3. <head>
    4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    5. <style type="text/css">
    6. .table_cls {
    7. width:100%;
    8. }
    9. .tr_cls {
    10. width:20%;
    11. align:center;
    12. }
    13. .td_cls{
    14.  width:20%;
    15.  align:center;
    16. }
    17. </style>
    18. <title>Tables</title>
    19. </head>
    20. <body>
    21.  <table class="table_cls"  border="1";>
    22.   <thead>
    23.   <tr class="tr_cls">
    24.     <td class="td_cls">Checkbox</td>
    25.     <td class="td_cls">Value</td>
    26.     <td class="td_cls">Textbox</td>
    27.     <td class="td_cls">Operators</td>
    28.     <td class="td_cls">Button</td>
    29.   </tr>
    30.   </thead>
    31.   
    32. <tbody>
    33.   <tr class="tr_cls">
    34.     <td class="td_cls"><input type="checkbox"/></td>
    35.     <td class="td_cls">5</td>
    36.     <td class="td_cls"><input type="text" /></td>
    37.     <td class="td_cls"><select>
    38.     <option>+</option>
    39.         <option>-</option>
    40.         <option>/</option>
    41.         <option>*</option>
    42.     </select></td>
    43.     <td class="td_cls"><input type="button"  value="Submit" /></td>
    44.   </tr>
    45.   
    46.   <tr class="tr_cls">
    47.     <td class="td_cls"><input type="checkbox"/></td>
    48.     <td class="td_cls">4</td>
    49.     <td class="td_cls"><input type="text" /></td>
    50.     <td class="td_cls"><select>
    51.     <option>+</option>
    52.         <option>-</option>
    53.         <option>/</option>
    54.         <option>*</option>
    55.     </select></td>
    56.     <td class="td_cls"><input type="button" value="Submit"  /></td>
    57.  </tr>
    58.  
    59.  <tr class="tr_cls">
    60.     <td class="td_cls"><input type="checkbox"/></td>
    61.     <td class="td_cls">6</td>
    62.     <td class="td_cls"><input type="text" /></td>
    63.     <td class="td_cls"><select>
    64.     <option>+</option>
    65.         <option>-</option>
    66.         <option>/</option>
    67.         <option>*</option>
    68.     </select></td>
    69.     <td class="td_cls"><input type="button" value="Submit"  /></td>
    70.   </tr>
    71.   
    72. <tr class="tr_cls">
    73.     <td class="td_cls"><input type="checkbox"/></td>
    74.     <td class="td_cls">8</td>
    75.     <td class="td_cls"><input type="text" /></td>
    76.     <td class="td_cls"><select>
    77.     <option>+</option>
    78.         <option>-</option>
    79.         <option>/</option>
    80.         <option>*</option>
    81.     </select></td>
    82.     <td class="td_cls"><input type="button" value="Submit" /></td>
    83.   </tr>
    84.  <tbody>
    85. </table>

    86. </body>
    87. </html>