См. этот пример live с помощью селектора атрибутов jQuery
$(document).ready(function() { alert($("#stylediv").attr('style')); });