jquery ui button same size

if you want to have buttons the same size and you not want to play with css, define





and in javascript code:

var button1 = $('#button1').button();
var button2 = $('#button2').button();

$('#button1Label').width(200);
$('#button2Label').width(200);

Leave a Reply