jQuery: Getting value from input array
- by betacar
We have the following form:
<form>
...
      <table width="100%" cellspacing="0" class="datagrid_ppal">
        <tbody>
          <tr>
            <th scope="row">Area 1 <input name="config_line" type="hidden" value="0,5,50" /></th>
            <td class="gantt"> </td>
            <td class="gantt"> </td>
            <td class="gantt"> </td>
            ...
          </tr>
        </tbody>
      </table width="100%" cellspacing="0" class="datagrid_ppal">
...
<form>
What we need is to get the first, second or third from the hidden input value. We have tried this and didn't work:
        var value = $('th').children('input:hidden').val();
Can anyone help us? We would really appreciate it.