Lender toggle

by Rich Costello

HTML

<a class="lender-toggle">More Details</a>

JavaScript

$('.lender-toggle').click(function(){
		var $this = $(this);
		$this.toggleClass('lender-toggle');
		if($this.hasClass('lender-toggle')){
			$this.text('More Details');			
		} else {
			$this.text('Less Details');
		}
	});