ACK! Focus issue;

wxdqz

New Member
When a user clicks on a checkbox, the focus stays there until something else is clicked on. An onChange event doesn't happen until the focus leaves the checkbox. How can I get the focus to go somewhere else once the onChange is done?

I've tried the following:

onChange="[function]; document.form.field.focus();"
onChange="document.form.field.focus(); [function];"

I've also used just the function, with the last line of the function being "document.form.field.focus();", all to no avail.

I'm trying to count checkboxes to make sure no more than x are checked; if more than x, the last box checked becomes unckecked and removes any checked radio buttons associated with it. It works fine, except it doesn't activate until AFTER focus has left the checkbox.

Any suggestions would be greatly appreciated.

WolfShade
 
Back
Top