我的字段集不顯示onclick,我做錯了什麼?JQuery顯示問題
$(document).ready(function(){
$('#More').toggle(
function() { $('#search', this).slideDown(); },
function() { $('#search', this).slideUp(); });
});
<div> Item 1 <a href="#" id="More">Item 2</a> Item 3
<fieldset id="search" style="display: none;">
<form>
<input type="text">
</form>
</fieldset>
</div>
在顯示的代碼中,我沒有看到字段集顯示正在從顯示更改:無 – Sunny 2010-04-24 17:35:55