Difference between revisions of "In-line Error Association"

From Level Access Web Labs
Jump to navigation Jump to search
 
Line 9: Line 9:
 
var error = document.getElementById("firstNameError");
 
var error = document.getElementById("firstNameError");
  
if (error.style.display == "none";){
+
error.style.display = error.style.display == "none" ? "block" : "none";
                            error.style.display.setAttribute("style","display: block;");
 
                        }
 
 
}
 
}
 
         </script>  
 
         </script>  

Latest revision as of 18:34, 13 March 2018

Page for testing in-line error messages.

In-line Error Association Testing

Sample Form

Activate the Submit button to toggle the in-line error.