This probably be the best way to accomplish this :)
id = $(".se[style*='display:block']").attr("id");
But you would have to think of multiples here, as your using the classes as selectors it usually means theres multiple div elements that your trying to grab, if thats the case, try this way instead
$(".se[style*='display:block']").each(function(){
//Here you can do what you want to each element
// use `this` as a selector, for example
id = this.attr('id');
});
Just a side note:
You have to make sure that your selectors are selecting the correct item when it comes down to css, For example
style = $('element').attr('style');
will only return the value form the actual element such as <div style="display:block"
.
To get the style values from the element that have been set within css you will have to use the selector to filter them out.
http://jsfiddle.net/4jVC8/
You need to make sure you keep in mind that these are separate!
So heres another filter version.
$('div.se').filter(function() {
return ( $(this).css('display') == 'block');
});