jquerymodalpopups

How to trigger a pop-up window on a button click?


The button is derived from user control. I want to associate a pop-up window on click of that particular butoon. I can able to achieve this on click of anyother buttons on my base page but as that particular button is coming from a user control I am not able to trigger the pop-up window.

$('#btnSendOrder').click(function() {// code here}) // btnSendOrder is from a user control.In this case pop-up is not coming.

$('#btnSendOrder').click(function() { // code here}) // btnSend Order is from the base page itself. In this scenario pop-up comes out.  

Solution

  • If you are using .NET, reember that your controls will end up looking something like: ctl1.UserControlName.ButtonName or something like that.

    Check your markup code once it is rendered, then use the exact button name so that your jQuery knows which control to fire from.