Fields with * are mandatory

Dios - Do It Open Source
 

Hover context


Sometime we need to operate in context, selecting multiple classes.
jQuery passes the target element to event handlers using this.

An example how you can use this is when hover function must operate over multiple selectors:

	$('.containerComment').hover(function(){
		$(this).addClass('commentHover');
		$('.votesTotalComment, .replyComments', this).show();
	}, function(){
		$(this).removeClass('commentHover');
		$('.votesTotalComment, .replyComments', this).hide();
	});
Add comment
Citation will be added automatically at the top of your message!