I m trying to pass a simple string parameter to a method. I googled but they are not showing anything relative. I don't know where i am doing a mistake. Here is my JavaScript and HTML code for the same.
function check(var tyt) {
document.getElementById(""+tyt).checked="checked";
}
Here is my html code:
<input type=radio name="InterestedIn" id="Placement" required value="Placement" /><font onClick="check('Placement')">Placement</font>