Apprise

The attractive alert alternative for jQuery

Demo

  • apprise('Hello');
  • apprise('Hello?', {'confirm':true});
  • apprise('Hello now?', {'verify':true});
  • apprise('How about now?', {'verify':true, 'textYes':'Yes already!', 'textNo':'No, not yet'});
  • apprise('Hello', {'animate':true});
  • apprise('What's your name?', {'input':true});
  • apprise('Verify your name', {'input':'Jack Jones', 'textOk':'Correct'});
  • apprise('Lorem ipsum...');
  • <script>
    $(document).ready(function()
      {
      apprise('Ready to begin?', {'verify':true}, function(r)
        {
        if(r)
            {
            // user clicked 'Yes'
            ...
            }
        else
            {
            // user clicked 'No'
            ...
            }
        });
      });
    </script>

    {
    'confirm' : false, // Ok and Cancel buttons
    'verify' : false, // Yes and No buttons
    'input' : false, // Text input (can be true or string for default text)
    'animate' : false, // Groovy animation (can true or number, default is 400)
    'textOk' : 'Ok', // Ok button default text
    'textCancel' : 'Cancel', // Cancel button default text
    'textYes' : 'Yes', // Yes button default text
    'textNo' : 'No' // No button default text
    }