Return to Snippet

Revision: 8822
at October 9, 2008 17:16 by trey


Initial Code
jQuery.fn.toggleText = function(a, b) {
	return this.each(function() {
		jQuery(this).text(jQuery(this).text() == a ? b : a);
	});
};

Initial URL
http://dev.jquery.com/ticket/1092

Initial Description

                                

Initial Title
jQuery toggleText

Initial Tags
jquery

Initial Language
JavaScript