i need add jquery on click, when contact form open's in modal window. i'm trying on console , it's working, when try add on file, nothing changes.my code is
jquery('.fl_box-menu-0 ').click(function(){ var myclone = jquery('.container_inner .title_subtitle_holder span').clone(); jquery(myclone).prependto("#cboxcontent form"); })
so need copy title page header, , paste in top of modal contact form. form can find here word press web site
and click contact me. when try in console add
var myclone = jquery('.container_inner .title_subtitle_holder span').clone(); jquery(myclone).prependto("#cboxcontent form");
it work , add title, when try add code in file, nothing changes. wrong? use contact form 7, , form lightbox modal. i'm looking file, add jquery code, make working.
i try delegated event:
jquery(document).on('click', '.fl_box-menu-0', function() { var myclone = jquery('.container_inner .title_subtitle_holder span').clone(); jquery(myclone).prependto("#cboxcontent form"); })
reasons using delegated events can found here.
it's not clear if issue, or issue, if click not working except, , console is, chances click not getting bound (dynamic element perhaps).
Comments
Post a Comment