Can anyone tell me how to rectify this....

I added in this line to my code to make my navigation button turn grey on the last page. It works but only when the button is clicked, I need it to display grey without them clicking it. Can anyone help? It also makes all the other forward buttons turn grey when they navigate backwards

This is the full block of code for the next button....

//Next Page Function
	$('.next').click(function() {
		if (current_page == no_pages){
			//do nothing

			next_page = (parseInt (current_page) + 1);
				$("#content").load("pages/page_" + next_page + ".html").fadeIn('slow')}		  
			current_page ++;
P.S. Im very new to this so please try not to be too technical with your response.

Thank you