【发布时间】:2016-03-17 15:41:53
【问题描述】:
最近我遇到了这个问题,请任何人帮助我。我正在尝试通过此功能显示和隐藏一个 div。
HTML:
<div class="question_frame">
<div class='help'>?</div>
<div class="help_content">Show & hide this text</div>
</div>
JavaScript:
$(".question_frame").find( '.help' ).click(function(){
$( this ).find( '.help_content' ).toggle(1000);
});
【问题讨论】:
标签: javascript html toggle this