View Full Version : accessing a checkbox with a dot (.) in its name
08-15-2004, 09:33 PM
How do i access a checkbox that has a dot (full stop) in its name?
e.g. the checkbox is called br.235
08-15-2004, 10:28 PM
var checkbox = document.forms['formName']['br.235'];Replace formName with the name of the form.
08-15-2004, 10:47 PM
thanks i will give it a try.
08-16-2004, 05:18 AM
See my sig for more info on the usefulness of square bracket notation.
08-17-2004, 02:26 AM
glengv that like is really good i will finish reading it another day.
You may use elements reference either
The full reference in a form is:
if name, this will be quoted like
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.