I must be doing something wrong here. I want jQuery to check if the width of a CSS element is greater than 0 then add CSS property:
<script>
$(document).ready(function(){
$(".neo-P4EMilestonesMilestone").each(function() {
$(this).css('width') !=0) {
$(this).css("display", "block");
});
});
});
</script>
The class element has a default width of 0:
<div class="neo-P4EMilestonesMilestone" style="width:0">
I want jQuery to look into any .neo-P4EMilestonesMilestone classes and if the width IS NOT set to "0" then add "display:block". Like this:
<div class="neo-P4EMilestonesMilestone" style="width:10%;display:block;">