Hi, I have problem how can i select the radio button when i am going to double click in table row.

Let say that this is a working code
Code:
while ($row = mysql_fetch_array($myresult)) {
 <tr  ondblclick=\"GetSelect('".$row['emp_num']."')\"  >
	<td><input type=\"radio\"  name=\"myradio\" value=".$row['emp_num']."  > </td>
				
				<td >".$row['emp_name']."</td>
				<td >".$row['emp_desc']."</td>
}

this is in other file, but the problem here i could not select the radio button,can you help me please on this.
Code:
   function GetSelect(empnum){

                 $('input[name=myradio]:radio').each(function(){
                      if($('input[name=myradio]:radio').val()==empnum){
                            $(this).attr('checked',true);
                      }
                  });

Thank you in advance.