extra link

The fourth lesson teaches how to select certain list items within an unordered list. This can help to cut down on numerous classes and IDs in your CSS.

For this example, I used an advanced CSS selector "li>a" to make only links within a list item become red. Some of the code is hidden in an external CSS file.

$(function() {

	$('li>a').addClass('alert');
	
});
			

You can see all the code by viewing the source of this page (Ctrl-U in most browsers).



Check out the video here.

www.channeleaton.com