jQuery UI Resizable Order Of Execution

Jenny

New Member
This may be a jQuery question as it is a jQuery UI question: taken from jQuery UI's Resizable docs http://jqueryui.com/resizable/\[code\]<head><meta charset="utf-8" /><title>jQuery UI Resizable - Default functionality</title><link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes <script src="http://code.jquery.com/jquery-1.9.1.js"></script><script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script><link rel="stylesheet" href="http://stackoverflow.com/resources/demos/style.css" /><style>#resizable { width: 150px; height: 150px; padding: 0.5em; }#resizable h3 { text-align: center; margin: 0; }</style><script>$(function() {$( "#resizable" ).resizable();});</script></head><body><div id="resizable" class="ui-widget-content"><h3 class="ui-widget-header">Resizable</h3></div>\[/code\]I can't figure out the order of execution here . It seems the call for resizable() is done before the html element itself . I know that in order to avoid it we have ways in pure javascript (for example body onload) and jQuery (for example the 'ready' function). What am I missing ?
 
Back
Top