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

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -