I haver the following HTML:
<div class="community-topic">
<h2><b>Ask</b> a Question</h2>
<p class="ask">+</p>
<div class="addtitle">
<p>Give your Question a great title</p>
<form name="input" action="submit.php">
<input id="title" type="text" name="title" />
<input id="go" type="submit" value="Go" />
</form>
<a href="discuss.php?style=question">See more questions</a>
</div>
Then the following jQuery:
$('.ask').toggle(function() {
$(this).text('-').next('.addtitle').slideDown('fast');
}, function() {
$(this).text('+').next('.addtitle').slideUp('fast');
});
I also want the .toggle function to happen when the <h2> his clicked.
How can adjust the above jQuery to include this?