I have several items in a list and want to highlight the one a user clicks on by applying some css style, maybe a background color etc.
My HTML looks like this:
$('.thumbnail').click(function(e) { e.preventDefault(); $(this).css('background-color', 'red'); })