나는 이전 양식을 숨기면서 다음 div를 여는 클릭 가능한 tabbable (마지막 입력의 FocusOut) 아코디언 스타일 효과를 만들기 위해 노력하고 있습니다.jquery ui를 사용하지 않은 고객 아코디언
<form class="common">
<div class="hidesfeildset">
<feildset>
<legend>Section Title:</legend>
<label><input type="text"/></label>
<label><input type="text"/></label>
</fieldset>
</div>
<div class="hidesfeildset">
<feildset>
<legend>Section Title:</legend>
<label><input type="text"/></label>
<label><input type="text"/></label>
</fieldset>
</div>
<div class="hidesfeildset">
<feildset>
<legend>Section Title:</legend>
<label><input type="text"/></label>
<label><input type="text"/></label>
</fieldset>
</form>
그리고 JS : 아래는 HTML입니다
<script>
$(document).ajaxSuccess(function(){
$(".hidesfieldset").hide();
$("legend").bind("click","focusout",function() {
$(this).next(".hidesfieldset").toggle();
});
});
</script>
내가 사람이 내가 잘못하고있는 무슨 보는가,이 내 인생 일 위선적 인 말투? 사전에
감사합니다, 마크
당신이 http://jsfiddle.net/arunpjohny/3VTNV/1/ 같은 의미 –
거의 완벽하지만 – Mark
클릭하는 요소에 클릭 이벤트에 있어야합니다 맞춤법'fieldset'과'feildset'을 수정하십시오. –