jquery selecting a Item

white_eagle

New Member
I have a form with a table.\[code\]<form > <div> <table> <tr> <td > <input type="text" id="slno1" size="25" value="http://stackoverflow.com/questions/13796160/10" /> </td> <td > <input type="text" id="data" size="10" value="http://stackoverflow.com/questions/13796160/this is a test" /> </td> <td > <input type="radio" value="" id="edit1" name="sample" /> </td> </tr> <tr> <td > <input type="text" id="slno2" size="25" value="http://stackoverflow.com/questions/13796160/10" /> </td> <td > <input type="text" id="data1" size="10" value="http://stackoverflow.com/questions/13796160/this is a test1" /> </td> <td > <input type="radio" value="" id="edit1" name="sample" /> </td> </tr> </table> <input type="submit" id="mysu1" Value="http://stackoverflow.com/questions/13796160/submits" /> </div> </form>\[/code\]in that when a user selects a row with a radio button I want all the data on that row.so, we do :\[code\]var theSelectedRadioButton = theForm.find('input[name="sample"]:checked');\[/code\]how can I get all the corresponding values in td's.
 
Back
Top