/jquery.alerts

pretty alerts, confirms and prompts for jQuery

Primary LanguageJavaScript

jQuery Alerts

This is a modified version of jQuery alerts from Cory S.N. LaViska, A Beautiful Site (abeautifulsite.net/notebook/87).

Dual-licensed as GPL and MIT.

Modifications

  • no titles anymore;

  • no ‘draggable’ dependency;

  • buttons texts are parametrables (for i18n and more flexibility).

Installation

Just copy and include the .js and .css files.

Usage

jAlert('Yup', 'Okay dude', function(){
 // ...
});

jConfirm('Sure ?', 'Yes dude', 'Nope', function(confirmed){
  if(confirmed){

}else{ }

});

jPrompt('What is the response?', 42, 'OK', 'Cancel', function(){
 // ...
});

License

Reseased under MIT License as the original source was.