[Javascript] Noob - JS/XHTML 1.1/Forms

Abyss info at abyss.ws
Fri Mar 25 15:37:26 CST 2005


Hi All, Im new to this mailing list...please try to be gentle :)


I have a heap of radio buttons that are generated from a database(which will change at random), and i will never know the exact number of radio buttons that have been printed.

Do you know if there is any way to return a radio button amount? like a total amount that are printed out? via javascript?

If so do you have any example code? or any links to any tutorials?

Also does anyone have any code that will help me validate the radio buttons?

im looking to display a "no buttons" message if no radio buttons are put into the form

and if there are radio buttons put into the form if none are selected then display a error message about how they must select one of the radio buttons.

this all on the submit button pressing....

while im writing this out..

I am not sure  but are you allowed to put javascript code out of the head document in a xhtml 1.1 page?

like just before the end html tags?




Thanks heaps
Abyss
Australia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20050326/a3880d74/attachment.htm>


More information about the Javascript mailing list