Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I think makes sense when a user checks or selects 'Other' to focus the text field.
In select_or_other.js, I changed...
$(ele).find(".select-or-other-other").parent("div.form-item").show(speed);
to
$(ele).find(".select-or-other-other").parent("div.form-item").show(speed, function() {
$(this).find(".select-or-other-other").focus();
});
BTW, I am using a callback function to prevent "Attempting to set focus to a hidden element causes an error in Internet Explorer..." (http://api.jquery.com/focus/)
Comments
Comment #1
danielb CreditAttribution: danielb commentednice I'll look into it soon
Comment #2
danielb CreditAttribution: danielb commentedcommitted, thanks!