how to build/develop a modal diglog box in mvc and how to pop it up on click of a button in jquery
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The modal would likely already be in the source of the page already, unless it’s something that requires an AJAX call. This is pretty simple to do, and I’d look into the jQuery UI library for their ‘dialog’ styles. This does pretty much exactly what you want.
http://jqueryui.com/demos/dialog/
From there it’s as easy as binding it in jQuery and calling it on click: