javascript: (function(){ function makeResizable(targetClass){ var draggableState = 'col-resize'; var unDraggableState = 'default'; var isDragging = false; $(window).mousemove(function(e){ if (isDragging) { var width = e.clientX - parseInt ($('.' + targetClass).offset().left); $('.' + targetClass).css ({ width: width + 'px' }); return false; } return false; }); $('.' + targetClass).mousemove (funct