I have a list of radio buttons. I need to make one of them checked based on the variable i have. How do i accomplish this? The problem is i have no control of what the radio but
Try this:
$('input[type=radio][value=' + preSelect + ']').attr('checked', true);