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.
Hello.I have a problem in my Drupal website.
I'm loading a subscription form with Colorbox, but the form focus is lost. Example is available at http://luchshieceni.ru/
Comments
Comment #1
annavetisy CreditAttribution: annavetisy commentedI've solved the problem and decided to share it. Hope this will ever be helpful for somebody.
window.jQuery(document).ready(function($) { $('.mydivclass').colorbox({open:true, inline:true, href:'form#mydiv'}); });.........
---------------
The reason of form to lose its focus was that I wrote [class="colorbox"] and [id="content"] in the same 'div'. But when I removed it
and placed in the upper 'div', everything worked perfectly!! :)
Comment #2
Neslee Canil PintoHi @annavetisy, better apply a patch for it.
Comment #3
Neslee Canil Pinto