同意进行下一步

时间:2022-04-20 18:03:19

<input class="check" type="checkbox" style="vertical-align:-3px;"/> 我已阅读以上内容    <button disabled="">同意 >>></button>

 $('.check').click(function(){

                            // alert(69696)

                            if($('.check').attr('checked')){

                                // alert(666)

                                $('button').attr("disabled",false);

                                $('button').css('background','#dc9643');

                            }

                            else{

                                 $('button').attr("disabled",true);

                                 $('button').css('background','#b6b6b6');

                            }

                             

                        })

                       

                    })