Michael Z
Michael Z

Reputation: 3993

Alert with JQuery

I am new at JQuery and couldn't find answer in the Web.

So what is the usually used alternative in JQuery for standard JS alert function?

UPDATE: Maybe my question was little not clear. I know that Java Script's alert function is OK for JQuery. I ask about it alternative at JQuery. I do not like very poor abilities at alert. I would like to use something more powerful, e.g. with styles, buttons, titles, etc. So I would like to see the simple JQuery's alert analog invocation.

Upvotes: 0

Views: 170

Answers (3)

Adil
Adil

Reputation: 148120

You can use alert() in jquery, you used in javascript. You can have custom plugins for showing message in jquery as well e.g jQuery Dialog.

Upvotes: 3

Felice Pollano
Felice Pollano

Reputation: 33252

There is no alternative in jQuery itself, and as far as I know is not the jQuery goal to provide such alternatives. If you mean you want to use something mor efancy to display a message box, you can look at jQueryUI.

Upvotes: 1

Curtis
Curtis

Reputation: 103358

jQuery is a Javascript library. You don't need an alternative.

If you wish to use a javascript alert(), you can use it within your jQuery code as you would any Javascript code.


However, if you are looking for more freedom with the design, check out jQuery UI .dialog():

http://jqueryui.com/dialog/

Upvotes: 5

Related Questions