This is probably a very simple thing i'm asking for help with, but (shamefully?) i've never got around to properly learning javascript - never really found myself needing/wanting to use it that much! Anyway, I've been asked to do something in javascript and i really have no idea. Any help would be hugely appreciated.
The basic task is that i have a number of checkboxes on a page (not a set number - anywhere between one and four) and i need them to essentially behave like a radio group; only one can be selected at any one time. I guess I need some function which, upon clicking on one checkbox, automatically finds all others on the page and unselects them.
I'm clueless with this stuff, and google is proving fruitless. Anyone?
The basic task is that i have a number of checkboxes on a page (not a set number - anywhere between one and four) and i need them to essentially behave like a radio group; only one can be selected at any one time. I guess I need some function which, upon clicking on one checkbox, automatically finds all others on the page and unselects them.
I'm clueless with this stuff, and google is proving fruitless. Anyone?