的後續行動,我已經張貼在這個線程:第2部分:JQuery的加入隱藏的HTML元素
JQuery Add Hidden HTML Elements
<input type='button' value='Show Picture' id='add'>
<div class='input'style='display: none;'>
<div class="form" id="inter"></div>
這是我的作品。當我按下按鈕時,圖像出現。
$("#add").click(function() {
$(".input:hidden:first").toggle()
});
但我的JQuery的另一部分,當我按下它消除了股利。 (正如我本來打算這麼做的)。
問題是,當我再次按下按鈕時,圖像不再重現。 我希望它像無盡的循環一樣工作。我顯示圖像,點擊它關閉它,點擊按鈕,圖像再次顯示。
這是你想要的嗎? http://jsfiddle.net/7KGEu/ – PSL