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/

window.jQuery(document).ready(function($) { $('.colorbox5').colorbox({open:true, inline:true, href:'div#content5'}); }); And here is the form
Could You please try to help me? Thanks in advance!


annavetisy’s picture

I'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!! :)