jQuery style parent item

[javascript]
jQuery(function($) {

$(‘img#name’).parent().css(‘text-align’, ‘center’);

});
[/javascript]

Leave a Reply