I am seeking to dynamically change the size of a div element on the client-side. By default, its height is set to 500px, but I want it to increase to 700px when a button is clicked.
This task involves an ASP.NET website.
I have been instructed to accomplish this using AJAX, but I am unsure whether this refers to utilizing client-side JavaScript from the Microsoft AJAX Library or employing server-side AJAX for a partial postback.
Adjusting the grid works fine when manually changing the inline CSS height attribute of the div element using IE developer tools:
<div id="myDiv" style= "position:relative;width:100%;height:500px;overflow:hidden;">
If AJAX is the recommended approach, what are the options available? Should I use JavaScript, JQuery, or are there advantages to using one over the other?
Edit: gratitude