From jQuery JavaScript Library
« Back to the jQuery UI Docs
Example:| Name | Type |
A simple jQuery UI Resizable.
$("#example").resizable();
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
$(document).ready(function(){
$("#example").resizable();
});
</script>
<style>div { width: 150px; height: 100px; }</style>
</head>
<body>
<link rel="stylesheet" href="http://dev.jquery.com/view/trunk/themes/flora/flora.all.css" type="text/css" media="screen" title="Flora (Default)">
<script src="http://dev.jquery.com/view/trunk/ui/ui.base.js"></script>
<script src="http://dev.jquery.com/view/trunk/ui/ui.resizable.js"></script>
<div id='example' class="ui-wrapper example">
<div style='position: absolute; top: 20px; left: 20px; bottom: 20px; right: 20px;'>Resize me</div>
</div>
</body>
</html>