jQuery: Getting value from input array
        Posted  
        
            by betacar
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by betacar
        
        
        
        Published on 2010-06-01T14:32:14Z
        Indexed on 
            2010/06/01
            14:43 UTC
        
        
        Read the original article
        Hit count: 233
        
JavaScript
|jQuery
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.
© Stack Overflow or respective owner