show-notice
hide-notice

Wednesday 7 August 2013

jQuery UI Resizable


Introduction:

Enable any DOM element to be resizable. With the cursor grab the right or bottom border and drag to the desired width or height.

Example:
<html>
<head>

<title>jQuery UI Resizable</title>
<link href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" rel="stylesheet"></link>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>

<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 class="ui-widget-content" id="resizable">
<h3 class="ui-widget-header">
Resizable</h3>
</div>
</body>
</html>


SHARE THIS POST   

0 comments :

Post a Comment

Design by Gohilinfotech | www.gohilinfotech.blogspot.com