javascript - Alerting after resizing an element -
How do I insert a warning message after resizing an element? That is, the resizeend () method has not been working after the element has been re-shaped.
$ ($ clone). Revised ({stop: function () {hello ();},});
html content prior>
Two JS library
& lt; Script src = "http://code.jquery.com/ jQuery-1.10.2.js" & gt; & Lt; / Script & gt; & Lt; Script src = "http://code.jquery.com/ui/1.10.4/jquery-ui.js" & gt; & Lt; / Script & gt;
A CSS
& lt; Link href = "http://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel = "stylesheet" & gt;
javascript content
$ ('resizethis'). Resizable ({stop: resizestopped}); Function resizestopped () {warning ('resize off'); }
css
.resizethis {width: 100px; Height: 100 pixels; Border: 2px solid red; }
Comments
Post a Comment