copied following code from http://jqueryui.com/demos/resizable/#default
<meta charset="utf-8">
<style>#resizable { width: 150px; height: 150px; padding: 0.5em; }
#resizable h3 { text-align: center; margin: 0; }
</style>
<script>
$(function() {
$( "#resizable" ).resizable();
});
</script>
<div class="demo">
<div id="resizable" class="ui-widget-content">
<h3 class="ui-widget-header">Resizable</h3>
</div>
</div>
It outputs this.

I want to capture the double click event for each of cursor position so that if
- Double click by horizontal re-size cursor, i can toggle width of current resizable between original and maximun available width.
- Double click by vertical re-size cursor, i can toggle height of current resizable between original and maximun available height.
- Double click by diagonal re-size cursor, i can toggle width and height of current resizable between original and maximun available width and height.
The handlers have specific classNames:
You can select them and bind the dblclick:
A pointer to the resizable you’ll get inside the function using
$(this).parent()