For anyone posting code samples please make a JSFiddle and not just copy and paste code here.
Otherwise I'm manually creating test cases for every bug I'm trying to evaluate & fix.
The techniques used here are very rudimentary, but effective nonetheless.
If you have suggestions for other approaches, or additional questions related to this example, be sure to email me. For more information, you'll want to keep a good Java Script reference manual handy.
Sometimes in a hurry to clear up space on C drive, System Administrator might delete some of the files in this folder.
There is no error while deleting, but the actual problem comes up when installing the hotfix/service pack related to the deleted file’s product.
The setup and validation of radio buttons appears to be the form field that gives many webmasters the most difficulty in setting up.
In actual fact the setup of these fields is the most simple of all form fields to validate as radio buttons set one value that only needs to be tested when the form is submitted.
A Java Script check is useful because it stops the form from being submitted if there is a problem, saving lots of time for your readers.
The CGI script is still more reliable, as it always works regardless of whether Java Script is enabled on the client-side or not; but having this extra safety barrier is a nice thing to have in place.
For a simple two choice radio selection with a default post value (hidden input) that results in three identical prompts, one for each radio and one for the hidden input.
This method, while far more cumbersome, allows a single error prompt.
There is a on Submit event that will be invoked when you press a submit button, call the validating code (keep that as a function) so that it will be invoked just before passing the data from the client to the server.