Asp.net mvc 4 compact and expanded jQuery pop-up dialog

Asp.net mvc 4 compact and expanded jQuery pop-up dialog,asp.net-mvc-4,jquery-dialog,Asp.net Mvc 4,Jquery Dialog,I'm totally new in MVC, I have info that I show in a jQuery pop-up dialog, but I need to compact and expand this dialog, as a small dialog has glance about my info, and a button when I click it expands to show all info, and click again to compact. My project is in MVC 4. Any help?

I'm totally new in MVC, I have info that I show in a jQuery pop-up dialog, but I need to compact and expand this dialog, as a small dialog has glance about my info, and a button when I click it expands to show all info, and click again to compact. My project is in MVC 4. Any help?


#1

Hi I think you are speaking about the jQuery toogle functionality. Here i paste below a small demo. Hope it may help you.

**Html code**
 <button type="button" id ="clickme" >Click Me!</button> 
<div id ="toggleSection">
   Toggle content here ...!
</div>

**Jquery Code** 
$( "#clickme" ).click(function() {
  $( "#toggleSection" ).toggle( "slow", function() {

  });
});

#2

thank you,it's the same idea,but i need it exactly as dialog :)

#3

because i have many partial views in the same view,when i click on one of them it must pop-up separately.