[jQuery] Newbie question on selectors

[jQuery] Newbie question on selectors

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702"></HEAD>
<BODY>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN class=178521218-03062009>I have a
page with 6 links that each have a unique class ;</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=178521218-03062009>edit_profile</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=178521218-03062009>edit_preferences</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=178521218-03062009>edit_journal</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=178521218-03062009>edit_entry.... and so on</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=178521218-03062009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN class=178521218-03062009>now I built
1 function based off edit_profile </SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=178521218-03062009>$("a.edit_profile").click(function(){</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN class=178521218-03062009>var url_id
= $(this).attr('href');</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN class=178521218-03062009>do
stuff......</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=178521218-03062009>});</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=178521218-03062009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN class=178521218-03062009>but rather
than writing the same function and changing the selector everytime how can i get
this all into 1 function? </SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=178521218-03062009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=178521218-03062009>Thanks,</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV align=left><FONT size=2 face=Arial>Dave </FONT></DIV></BODY></HTML>