/ Published in: JavaScript
URL: http://dev.jquery.com/ticket/1092
Expand |
Embed | Plain Text
jQuery.fn.toggleText = function(a, b) { return this.each(function() { jQuery(this).text(jQuery(this).text() == a ? b : a); }); };
You need to login to post a comment.
