0
<div id="formheadtop">
<input class="checkbox" type="checkbox" /></div><div class="formbody"></div>
<div id="formheadtop">
<input class="checkbox" type="checkbox" /></div><div class="formbody"></div>
<div id="formheadtop"><input class="checkbox" type="checkbox" /></div><div class="formbody"></div>
$(function() { $('input:checkbox').live('click', function() {
if ($(this).attr('checked') == true)
{
$(this).nextAll('.formbody:first').fadeIn();
}
else
{
$('.formbody').fadeOut();
};
});
的代码不能正常工作。我只想淡出下一个div.formody。的jQuery淡出
令人印象深刻的答案 - 看起来像很多工作,代码示例在行动和所有。不错的工作! – kander 2010-07-23 23:31:24
谢谢。它没有那么多时间。希望它会有用。 :) – 2010-07-23 23:46:25