Jquery Selectors not working

Posted by Breezer on Stack Overflow See other posts from Stack Overflow or by Breezer
Published on 2010-06-02T23:39:13Z Indexed on 2010/06/02 23:44 UTC
Read the original article Hit count: 188

I use the following selector to get the value out of an input that's inside a table but it doesnt work properly?

var kom =$("tr#1 .b input").attr(value);

and row looks as follow

  <tr class="numbers" id="1">
   <td class="a" align="right">1</td>
   <td class="a" align="left">Tue</td>
   <td class="b"><input class="input" type="text" title="" value=""/></td>
   <td class="c"><input class="input" type="text" title="" value=""/></td>
   <td class="d"><input class="input" type="text" title="" value=""/></td>
   <td class="e"><input class="input" type="text" title="" value=""/></td>
   <td class="f">0</td>
   <td class="g"><input class="input" type="text" title="" value=""/></td>
 </tr>

any suggestion on what i might be doing wrong any aid is greatly appreciated

regards breezer

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery