Styling the Sign Up Page

Sett 21 ganger
Hopp til første uleste melding

Mark Billion

ulest,
14. aug. 2017, 10:19:2814.08.2017
til web2py-users
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?

Anthony

ulest,
14. aug. 2017, 10:39:0814.08.2017
til web2py-users
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
Svar alle
Svar til forfatter
Videresend
0 nye meldinger