jQuery Alert Plugin Examples

A JavaScript popup window alternative to create beautiful and customizable popup boxes for reminding something, confirming or denying something, or prompting the user for more information.

Alert

$.alert('message',{options})

$.alert('An Alert Dialog By jQueryScript',{em:'Emphasized Text',title:'Alert Dialog'})

Confirm Dialog

$.confirm('message',{options})

$.confirm('Are You Sure To Delete This Entry?',{em:'BEmphasized Text',title:'Delete!',callEvent:function(){$.alert('Deleted!')},cancelEvent:function(){$.alert('Canceled');},cancelButton:'No!'})

Prompt Dialog

$.prompt('message',{options})

$.prompt('Try To Type 1234',{title:'Login Form',callEvent:function(val){if(val==1234) $.alert('Invalid Password'); else $.alert('Logged In');},input:'password',confirmButton:'Log In'})

jQuery Method Chaining

$("#item-box").stop().animate({"margin-left":"500px"},1000)
.animate({"margin-left":"0"},300)
.delay(300).alert('Another Dialog',
{
  callEvent:function(){
   $("#item-box").stop().animate(
    {"margin-left":"500px"},1000
   ).animate(
    {"margin-left":"0"},300
    )
  }
});

Item