嗨,專家,我是新來的jquery &在這裏,當我點擊'更改備用電子郵件'鏈接框下滑,但當點擊保存按鈕,實際上它應該滑動但它沒有。 這是我的代碼。slideUp不工作的按鈕
HTML:
<div class="form-group alternate-email-box">
<div class="row margin-lft-right-0">
<div class="col-sm-10 pad-left-zero">
<input type="email" class="form-control" name="alternate-email">
</div>
<div class="col-sm-2">
<button type="button" class="btn pi-btn btn-radius">Save <span class="glyphicon glyphicon-menu-right right-arrow-head-icon alternate-email-btn"></span></button>
</div>
</div>
</div>
的Jquery:
$('.alternate-email').click(function(){
$('.alternate-email-box').slideDown();
return false;
});
$('.alternate-email-btn').click(function(){
$('.alternate-email-box').hide();
return false;
});
使用'效果基本show()''不隱藏()'和附加事件處理程序'btn' – Satpal