S Nash
S Nash

Reputation: 2509

Confirm Popup in ASP.NET with Yes No

I need a confirm popup which shows Yes and No

Now there is javascript confirm function which shows OK Cancel buttons and always gets displayed on the top of the page.

Is there a Jquery function which shows Yes/No ?

Or at least is there a way to show the Javascript popup next to the button which makes it popup?

So far my search points to make a custom popup..

Note: the proposed link is not a duplicate: It does not answer part of my question which asks for making popup next the button.

Upvotes: 0

Views: 1749

Answers (1)

Harris
Harris

Reputation: 1785

From what I understand, you're just trying to make a confirm modal that looks how you want it.

You'd basically just be including some HTML that's located where you want, and has its visibility toggled with the $.toggle() method.

Take a look at a simple example here.

Unfortunately, I don't think there's a way to modify the built-in alert() popup modal, because it's an actual system object, not just a design rendered in JS.

Upvotes: 1

Related Questions