Resize jquery UI dialog with JS?

pentarim picture pentarim · Jan 4, 2009 · Viewed 18.7k times · Source

Even better would be if autoResize in latest branch would work as intended, but till then the question is simple: how to resize a dialog once it is created?

Answer

rdworth picture rdworth · Jan 4, 2009

The answer from is Soviut is correct for v1.5. 1.6 adds an option method to each plugin:

$(document).ready(function(){
    var d = $("#example").dialog();
    d.dialog("option", "width", 700);
});