I have this HTML code:
<input type="radio" name="printTemplate" value="5" checked="checked">
<input type="radio" name="printTemplate" value="2">
how can I make value "2" checked (ticked) in javascript? I have no access to change html code, it is public website. Here is XPath to this radio with value "2"
//*[@id="frmSubmit"]/table/tbody/tr[4]/td/p[2]/table/tbody/tr/td[1]/input[3]