In IE, the show/hide of the "other" input element happens when the checkbox or radio losses focus, instead of when it is clicked. This is due to the different way IE handles the jQuery change event. The attached patch changes "change" to "click", which solves the problem. Issue first reported by kutyamutya.
The patch also removes a call to hide() which is not needed because input elements are either shown or hidden a moment later by select_or_other_check_and_show().
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | select_or_other.js_.txt | 936 bytes | liam morland |
| select_or_other_ie_click_change.patch | 644 bytes | liam morland |
Comments
Comment #1
danielb commentedComment #3
liam morlandUnfortunately, my fix for IE broke Chrome/Safari. Attached is a reworked JavaScript file that works for me in Firefox, Safari, Chrome, Opera, and IE 6-7-8. I posted the full file instead of a diff since most of it has changed.
This change means that each
div.select-or-otherdoes not require its own @id attribute.Comment #4
danielb commentedThanks Liam, I've updated the CVS.