나는 다음과 같은 목록이 : 나는 토글 쇼/closeBox
jQuery를 토글 스팬 액션에/숨기기를 보여
주의 행동의 클릭에 <div>
comment_actions
을 숨길 수있는 방법
<div id="topicListContainter">
<ul id="sList" class="sList">
<li id="itemList_11">
0. updated <span class="closeBox" id="11" ><img src="images/close.png"></span>
<div id="comment_actions" class="comment_actions" style="display: none; margin: 5px"><textarea style="width: 100%"></textarea>
<br>
<input type="text" id="date" class="date" /> <input style="margin: 5px" type="button" class="button blue" value="Save" />
</div>
</li>
<li id="itemList_27">
1. Sta ima <span class="closeBox" id="27" ><img src="images/close.png"></span>
<div id="comment_actions" class="comment_actions" style="display: none; margin: 5px"><textarea style="width: 100%"></textarea>
<br>
<input type="text" id="date" class="date" /> <input style="margin: 5px" type="button" class="button blue" value="Save" />
</div>
</li>
<li id="itemList_26">
2. Update 22 <span class="closeBox" id="26" ><img src="images/close.png"></span>
<div id="comment_actions" class="comment_actions" style="display: none; margin: 5px"><textarea style="width: 100%"></textarea>
<br>
<input type="text" id="date" class="date" /> <input style="margin: 5px" type="button" class="button blue" value="Save" />
</div>
</li>
.....
를 :
,557,251 : 각<li>
는 자신의
comment_actions
DIV 같은
지금까지 내가 시도 뭔가가
왜'.closeBox' 디스플레이가 표시되지 않습니까? 왜 id는'comment_actions'가 유일하지 않은가? –
@Adnan 귀하의 문제를 해결하고 기꺼이 답을 채점 해 주셔서 감사합니다. upvote도 요청하는 것이 너무 어려울까요? :) –