Looking for a way to hide a form field until another field is properly completed? I have a divided registration form and want the second field to appear only when the first one is valid. Preferably using CSS3, with HTML5 and maybe some JavaScript if necessary.
For instance: I request "Group Name". Once a valid group name is entered (validated through Javascript without using a dropdown), the field for "Group Password" should then become visible.
I was thinking of using something like this:
document.getElementById("groupname").disabled = true
However, not sure how to trigger it. Maybe incorporating html5 validation could serve as a trigger?