I have a fixed height div which looks like following. 2 issues.
1 - when I click the 'on_click"show_hidden_div' it does show the div but since the parent div is fixed height, I just get a scrollbar and now the user has to scroll down, any way to automatically scroll down when the hidden div is show?
2 - When the hidden div is hidden again(by clicking on the link), it seems the entire 'fixed_height' kinda does a jarring motion, while the div is being hidden. How to make this smooth?
I am using jquery obviously and this fixed height div is inside a jquery tools overlay div, basically this is a modal dialog.
here is the javascript
$('#on_click_show_hidden_div').live('click', function() {
$('#on_click_show_hidden_div').toggle('slow');
return false;
});
<div id='fixed_height>
<div id='form-wrapper'>
<!-- form and form element -->
<form id='post_form'>
<a id='on_click_show_hidden_div'></a>
<div id='hidden_div_with_more_form_elements'></div>
<input id='submit'/>
</form>
</div>
</div>