Form with Hover Button

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Form with Hover Button

pixelwiz
Hi, I'd like to display a form inside a shadowbox.  I'd like to add a .hover to the submit button.  I've tried to add the event handler every way I could imagine, and I can't get the hover to trigger an event inside the shadowbox.

 $(document).ready(function() {
        //hover for button
                                $('.form_button').on('hover', function() {
                                                $(this).addClass('form_button_hover');
                                        }, function() {
                                                $(this).removeClass('form_button_hover');
                                });
      });