adspace


code to Hide and Show form controls

Answer Posted / Ashvin Yadav

Here's an example of how to hide and show form controls using JavaScript:n```javascriptnfunction toggleVisibility(id) {n var element = document.getElementById(id);n if (element.style.display === "none") {n element.style.display = "block";n } else {n element.style.display = "none";n }n}n```

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

code to sorting an array of objects

2572