By default shows a minimized view inside a div, when user click on the div,the form pop up for user to edit.
How to implement this? Or is there a ready plugin to achieve this with jQuery?
By default shows a minimized view inside a div, when user click on the div,the form pop up for user to edit.
How to implement this? Or is there a ready plugin to achieve this with jQuery?
Just create it and have it small with the overflow set to hidden.
Then on click have it animate larger.
edit:
oh right. So you want it ALL to be small?
Hmm, well I don't think there is an "easy" way. What you could do it use the % on width and hight (and text size) on a search though all the compontants on the form.
Could work, that is just theory off the top of my head though.
example:
$("#container").click(function () {
$(this).siblings().css({width:25%, height:25%, font-size:25%});
})
etc...
You just need to specify a style that is bigger and one that is smaller and flip back and forth between them:
jQuery('#my-div').click(function(){
jQuery(this).removeClass('smaller').addClass('bigger');
});
jQuery('#my-div').blur(function(){
jQuery(this).removeClass('bigger').addClass('smaller');
});
Or something similar to that.