What if JavaScript is turned off?
We’ll need to make sure that users with JavaScript turned off can add extra fields, too. Adding a name/value pair to the submit button will submit the page to the server with a indication that the user has JavaScript turned off: value=”Add new user” name=”add-user-no-js” The doctype is XHTML strict and the mark-up meets Level AAA accessibility standards. The JavaScript is unobtrusive DOM scripting. See the form. Note: This article has been changed to include a simplified example. The original example included show/hide functionality which added unnecessary complexity.