prefix + and - to divs using jquery.
- by pradeep
i have jquery accordion script like this..
<script type='text/javascript'>
$(document).ready(function() {
$('div.Syb> div').hide();
$('div.Syb> h4').click(function() {
$(this).next('div').slideToggle('fast')
.siblings('div:visible').slideUp('fast');
});
});
</script>
i need to show + and - symbol before the div ..to show that its expanded and collapsed..
how do i do it.?