The CSS and Java Script files associated with a given widget are named after the widget, so it’s easy for you to know which files correspond to which widgets.Hi I was struggling to get the validation working for my radio button group.Do you have any idea what could be causing this behaviour? Safari gets confused with having the same name, and it is reporting the incorrect value.So if the number of non-completions is greater than zero the form isn't submitted.This may seem over engineered but it is designed so that multiple radio button groups can be validated.
For example if you’re asking a user to select a country the first option is “Select a country” and the name of the countries follow so we need to check if the first option is selected and then display a message to select an option.
This is great but comes with the inevitable HTML5 caveats that it just can't be relied on across all browsers. So in order to get this two arrays are created to store all the names and then refine that list of the unique names.
We need to check if it is equal to null or “” because different browsers act differently so its better to check for both the conditions.
The following function checks whether the texbox with id name1 is empty, if empty it displays a message and highlights that textbox with red color.