私はチェーン機能を持つ基本的な条件文を持っています。 elseメソッドの後には起動しないshow()のコールバックがあります。コールバックが発火しない条件文
何が間違っていますか?構文??
のthnx
var closeList = $('#west');
$('#menuToggle').click(function(){
var p = $('#west').css('display');
if (p != "block") {
$('#contentBox').width('70%', function() {
$('#west').show(); // <--THIS DOESNT FIRE!!
});
} else {
$('#west').hide();
$('#contentBox').width('98%');
}
});
HTML
<!-- ------------------------- Main Content -------------------- -->
<div id="wrapper" class="wrapperPosition">
<div id="west">
</div>
<div id="contentBox">
<div id="content" class="contentPosition"></div>
</div>
</div>
あなたはHTMLを追加することができますしてください:私のコメントについては詳しく説明し
。 – RubbleFord
@ RubbleFord私はしましたが、私はそれが重要であることを見ません - 他のすべてが動作します。 Thnx – CelticParser