As shown in screenshot after fetching Id of text Field still it is not hiding this field ,
How to hide this?
I have writtin the following code for the same
const hardwareYes = document.getElementById("hardwareYes"); const hardwareNo = document.getElementById("hardwareNo"); const revisitDateField = document.getElementById("revisitDateField"); // Function to show or hide the Revisit Date field based on radio button selections function toggleRevisitDateField() { const showRevisitDate = hardwareNo.checked; revisitDateField.style.display = showRevisitDate ? "block" : "none"; } // Add event listeners to the radio buttons to trigger the function hardwareYes.addEventListener("change", toggleRevisitDateField); hardwareNo.addEventListener("change", toggleRevisitDateField); // Initially, hide the Revisit Date field revisitDateField.style.display = "none";
But still it is not hiding

Report
All responses (
Answers (