Using UI button problem. Text not appearing, or is different font sizes.

Using UI button problem. Text not appearing, or is different font sizes.

Hello,

Im trying to replace my img buttons with the jquery button add-on.

I have img tags with source and an onclick event.

What is happening is not all my buttons contain any text. Also, the ones that do are all different font sizes and such.

Im replacing the text of the button in the following manner:

At doc.ready Im obtaining the alt text and replacing the value with the alt text.
But not all of the buttons contains text.(and their all different sizes)

 $(document).ready(function(){                            
   $( "img" ).attr("src","");                             
   $( "img" ).attr("value",$("img").attr("alt"));         
   $( "img" ).button();                                   
   });