问题
Can any one suggest the code for creating message box in jquery???
回答1:
Do you mean just? alert()
function hello_world(){ alert("hello world"); }
回答2:
using jQuery UI you can use the dialog that offers. More information at http://docs.jquery.com/UI/Dialog
回答3:
jQuery UI Dialog right here: http://jqueryui.com/demos/dialog/
回答4:
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
回答5:
Try this plugin JQuery UI Message box. He uses jQuery UI Dialog.
回答6:
- Bootstrap3 provides modals
- jQuery UI dialogs
- jQuery.msgBox provides various kinds of dialogs:
- For 5$ per app it is used, there is http://codecanyon.net/item/jquery-msgbox/92626.
回答7:
If you don't wont use jquery.ui(that is highly recommended), you can take a look at Block.UI plugin.
来源:https://stackoverflow.com/questions/4920459/message-box-in-jquery