좋아이 어딘가에 내가의 라인을 따라 뭔가가 필요 거기에 분명 내 자바 스크립트플러스와 아코디언에 마이너스 내가 <a href="http://jsfiddle.net/rW3KU/1/" rel="nofollow">here</a></p> <p>볼 수있는 작업 아코디언, 그래서
$(document).ready(function ($) {
$('#accordion').find('.accordion-toggle').click(function() {
//Expand
$(this).next().slideDown('fast');
$(this).children(".plusminus").text('-');
//hide other panels
$(".accordion-content").not($(this).next()).slideUp('fast');
});
});
입니다 :
를 $(this).next().slideUp('fast');
$(this).children(".plusminus").text('+');
내용 상자를 닫고 + 기호로 다시 변경하지만 어떻게해야하는지 잘 모릅니다. 어떤 도움이 필요합니까?
힌트 같은 클래스가 : 당신은이'+'또는'-' 처음이 있는지 여부를 확인하기 위해 기호를 확인해야합니다. –
CSS를 사용하여': after' 또는': before' 콘텐츠를 지정하십시오. – Blazemonger
바이올린 업데이트 : http://jsfiddle.net/rW3KU/2/ –