Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

Need to open a Modal dialog in JavaScript

From inside a JavaScript function I need to open another Modal dialog, also in JavaScript

I use Razor (cshtml)

Please provide the syntax to open the dialog as wel as the syntax to create the dialog in JavaScript.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of dexterrajesh
dexterrajesh
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of curiouswebster

ASKER

What might the url be?

I was thining more like this:

$("message_dialog").dialog("open);

Please explain the second method.
dialog("open) opens a modal pop-up with message $("message_dialog")
Yes, I want that.

What's the syntax?

Can I put that inside JavaScript?
How do I get text in the body of the message box?
I thought via a div tag, but it's not working.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks.