jquery - Drupal 7 behaviors don't work -


i'm having problem drupal behaviors seem work logged in users, not else, except when behavior executing submit().

for example won't work.

drupal.behaviors.login_activate = {   attach: function (context, settings) {     $("#sr_login", context).hover(       function(){         $(this).append($("<span> ***</span>"));       },       function(){         $(this).find("span:last").remove();       }     );   } }; 

this work.

drupal.behaviors.foundation_donation = {   attach: function (context, settings) {     $('#monthly_submit').click(function(){       $('#monthly_donation').submit();     });     $('#single_submit').click(function(){       $('#single_donation').submit();     });   } }; 


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -