| 1. |
Explain “resize” Method In Jquery? |
|
Answer» “Resize” METHOD USED with window object. This method will be fired when the size of the browser window CHANGES. For example $( window ).resize(function() { $( "#myControlID" ).APPEND( "<div>Test Content</div>" ); }); As per above snippet when browser window’s size changes, content will be appended to the control – “myControlID”. “Resize” method used with window object. This method will be fired when the size of the browser window changes. For example $( window ).resize(function() { $( "#myControlID" ).append( "<div>Test Content</div>" ); }); As per above snippet when browser window’s size changes, content will be appended to the control – “myControlID”. |
|