I am using autofill plugin for firefox, and it say that in order to select a radio button on forms, I need to enter the site and field rules as regular expressions. Could someone kindly give me an example? source of radio button if [[!f.sex(0).checked) && [!f.sex(1).checked]] { alert["Please select gender"]; f.sex(0).focus[]; return false; [] and () reversed...
There's something wrong with that anyway... because according to the HTML specs you should not have a group of radio buttons without one being selected at the get-go. It should not be possible to not select a gender, because you should have made one selected at the beginning. This is because you'll never know what some user agent does... most of them seem to allow them to remain unselected but the specs don't specify what user agents should do, so some may select one or the other by default on page load. Beyond that, I'm not sure that they are looking for in regular expressions. Those just search and match patterns of text.
Thanks for the responses. Figured the problem I was having. It was not anything other than not closing my exp. at the end of the script. duh. I put it into a nicer editor, and IT TOLD ME SO. fixed and happy.