Moving and resizing from script |
Top Previous Next |
Because all on screen controls are jQuery UI elements with the ID set, you can use standard jQuery commands on them. This means you can easily move and resize them from script. For example, to move a control with an ID of "myVal" to the top left by doing: $("#myVal").css({left : 0, top : 0}) or change its width and height to 100: $("#myVal").css({width : 100, height : 100})
|