check if radio button is checked in ejs

As the title says,I’m trying to check if radio button is checked,but since document isn’t available,how am I supposed to do it? I want to achieve

<%if(radio1.checked){%>
 <%-include('./someHtml')%>
<%}%>