PDA

View Full Version : any one no what im doing wrong



tommycl
11 Mar 2011, 09:16 AM
trying to resize a box but cant get the id

<script type="text/javascript">
$(document).ready(function() {
$('.text_wrapper').resizable({
onResize: function(e) {
var id = $(this).attr("id");

var parent = $(this).parent();
$('.wrapper').load('modules/web/process-sortable-size.php?height='+ e.data.resizeData.target.css('height') +'&width='+ e.data.resizeData.target.css('width') +'&id='+ id);
},
onStop: function(e) {
}
});
});
</script>

awniyya1
04 Apr 2011, 04:09 AM
Hello Friend,

why have you used $('.wrapper') and $('.text_wrapper'). In this why are placing a "." in front?

Ahamed