Div not showing in chrome

Div not showing in chrome

Hello,

I have a div that I initially display as display:none in the html. On the first time load.

But when I click a button Im trying to display the div.

It only works in FF.

 $("#ret").click(function () {         
   $("#loading").show();                

  <div align="center" id="loading" style="display:none">         
 <img alt="Loading..." src="/ship/ajax-loader.gif" border="0">   
</div>