The following javascript/jquery snippet applies a css to all currently matchicng elements in the DOM.
$('.centeredByJquery').each(function(){
$(this).css({'margin-left': -parseInt($(this).css('width'))/2,
'left':'50%',
'margin-top': -parseInt($(this).css('height'))/2,
'top':'50%'});
})
How do I apply this method to all future matching elements as well ?