2番目のボタンクリックイベントは、最初のボタンクリックイベントが機能した後にのみ機能するようにします。 2番目のボタンのクリックイベントは、最初のボタンをクリックする前に機能してはなりません。最初のボタンをトリガした後にのみ2番目のボタンをトリガする方法
<div class = "panel1">
<button>button1</button>
<p>Button 1 triggered</p>
</div>
<div class = "panel2">
<button>button1</button>
<p>Button 2 triggered</p>
</div>
p{
display:none;
}
$(document).ready(function(){
$("button").click(function(){
$(this).siblings("p").toggle();
});
})
は、あなたが2枚の小切手活性化する前に、そのボタン1ボタンの完了時に真/偽引き起こす可能性が? –