Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hii
I need to open a pop up window by clicking a button.and cancel it by using another button in the pop up window using j query in mvc4 .pls help me as i m new to mvc and jquery
Posted

Hi,

Like you have a button where you want to show pop-up, add on click even with jquery method name



Next, add this code to write script function(if writing on page)


function displayPopUp(objInpt) {
$("#dialog").show();
}

Add this html, write pop-up html and controls in this

<div id="dialog" title="Dialog Title">I'm in a dialog</div>

Or you can call an iframe in this div on load
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900