in developer tools I can see my button: 

```
<input type="submit" name="ctl00$MainContent$MapUserControl$MapDefPage$CreateEditLayerPage$addAttribute" value="Add Attribute" id="ctl00_MainContent_MapUserControl_MapDefPage_CreateEditLayerPage_addAttribute" title="Click to add a new attribute to the layer" class="edit green btn spaceRight" style="float: right; display: block;">

```

You can see at the end the style has a DISPLAY of BLOCK.

But when I try to test this in the console:

```
$('addAttribute').css("display") == "block"
false

```

I get a return of FALSE, when I can see it should be TRUE. Why is this?
Basically I want to check if my button is hidden or visible so I can perform a task depending on which.
Have also tried 

```
$('addAttribute').is(":visible"); 
false

```

But returns false as well. What am I doing wrong?
Thanks