jQuery toggling a class within a specific form
===

I have a click function which toggles the wording of some text within a form. This same area/wording appears multiple times within my javascript application.

In an effort to make my code cleaner, I figured it would make sense if I only had this toggle code block once. Consequently, I feel like I need to toggle based on the relevant form the user is on.

Here's my code.. Is there a way I can pass a form name to this in order just to affect the form the user is currently viewing and not the other instances of the classes in my application?



	$("#.myLink").click(function(){
	$("#myContainer").toggle();
	$(this).text($(this).text() == 'Add' ? 'Remove' : 'Add');
	});

