The .change() method sets up a handler for changes in input, select, and textarea elements, not for clicking buttons. If you want a change to happen when the button is clicked, set up a click handler or maybe simply a submit handler.
Anthony On Monday, August 14, 2017 at 10:19:28 AM UTC-4, Mark Billion wrote: > > I have Jquery that works fine to style the user/login page.... > > $( document ).ready(function() { > $(":submit").addClass( "btn btn-default" ); > > $(".btn").css('margin-right', '10px'); > $(".w2p_fl").attr('align', 'right'); > $( "form>table" ).prepend( '<tr><td colspan="2"><figure > class="form__image"><img > src="/welcome/static/css/images/ico-dollar-happy-large.png" width="72px" > alt=""></figure></td></tr>' ) > }); > > > But I cant for the life of me get it to apply when I hit the sign up > button. This is what Im using, but Ive also tried form and even document > dot change.... > > $(".form-sign").change(function(){ > $(":submit").addClass( "btn btn-default" ); > > $(".btn").css('margin-right', '10px'); > $(".w2p_fl").attr('align', 'right'); > //$( "form>table" ).prepend( '<tr><td colspan="2"><figure > class="form__image"$ > > $( "form>table" ).prepend( '<tr><td colspan="2"><figure > class="form__image"><img > src="/welcome/static/css/images/ico-dollar-happy-large.png" width="72px" > alt=""></figure></td></tr>' ) > > Any thoughts? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.