17

Can any one suggest the code for creating message box in jQuery?

Syscall
  • 19,327
  • 10
  • 37
  • 52
ashish
  • 197
  • 1
  • 1
  • 3

7 Answers7

14

Do you mean just? alert()

function hello_world(){ alert("hello world"); }
classicjonesynz
  • 4,012
  • 5
  • 38
  • 78
9

using jQuery UI you can use the dialog that offers. More information at http://docs.jquery.com/UI/Dialog

Sotiris
  • 38,986
  • 11
  • 53
  • 85
5

jQuery UI Dialog right here: http://jqueryui.com/demos/dialog/

JK.
  • 21,477
  • 35
  • 135
  • 214
4

Try this plugin JQuery UI Message box. He uses jQuery UI Dialog.

Sergik666
  • 127
  • 2
  • 6
3

Let me to recommend you a jQuery plugin for nice modal alers. It doesn't requires jquery UI.

Demo: http://www.webmasters.by/images/articles/jquery.alerts/index.html

Kir
  • 7,981
  • 12
  • 52
  • 69
2
koppor
  • 19,079
  • 15
  • 119
  • 161
1

If you don't wont use jquery.ui(that is highly recommended), you can take a look at Block.UI plugin.

gor
  • 11,498
  • 5
  • 36
  • 42