Multiple toggle-events with jquery on php-generated html
<p>I know the title isn't the best, I didn't know how to put this in one sentence.
Anyway, I've got some php code creating pairs of links and corresponding boxes which should toggle, when I hit the link. Now I was wondering how you do this in jQuery "the right way".</p>

<p>Until now I gave every link the class <code>togglelink</code> and an ID <code>togglelink1</code>, <code>togglelink2</code> etc. The boxes then have the ID <code>togglebox1</code>... So I respond to <code>$(".togglelink").click()</code>, get the current ID, parse the number, add it to the box-ID and toggle the object. </p>

<p>This doensn't seem very straight foward as it's a task I'm sure is pretty common. Any suggestions on how I could improve this?</p>
