This is my JS:
function showReturning(){
document.getElementById("returningdate").style.display = 'block';
}
And this is my HTML:
<input type="radio" name="triptype" value="roundtrip" onclick="showReturning()"/><label>Round Trip</label>
<td class="hiddenReturning">
<label>Returning:</label>
<input type="text" name="returningdate" id="returningdate" required="required" placeholder="dd/mm/yy">
</td>
And this is my CSS:
.hiddenReturning{
display:none;
}
When I click the radio button, the text box is not being displayed.