0% found this document useful (0 votes)
22 views1 page

Jalert

jQuery Alert Dialogs (Alert, Confirm, & Prompt Replacements) provides customizable alert, confirmation, and prompt dialog boxes as replacements for the basic alert, confirm, and prompt functions. Basic examples show how to create an alert, get a confirmation response, and prompt for user input. Additional examples demonstrate including HTML in alerts and changing the dialog style by modifying CSS classes. The plugin source can be viewed for more configurable properties.

Uploaded by

wangfuren_81
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views1 page

Jalert

jQuery Alert Dialogs (Alert, Confirm, & Prompt Replacements) provides customizable alert, confirmation, and prompt dialog boxes as replacements for the basic alert, confirm, and prompt functions. Basic examples show how to create an alert, get a confirmation response, and prompt for user input. Additional examples demonstrate including HTML in alerts and changing the dialog style by modifying CSS classes. The plugin source can be viewed for more configurable properties.

Uploaded by

wangfuren_81
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

« jQuery Alert Dialogs (Alert, Confirm, & Prompt Replacements)

Basic Examples
Alert
jAlert('This is a custom alert box', 'Alert Dialog');
Confirm
jConfirm('Can you confirm this?', 'Confirmation Dialog', function(r) {
jAlert('Confirmed: ' + r, 'Confirmation Results');
});
Prompt
jPrompt('Type something:', 'Prefilled value', 'Prompt Dialog', function(r) {
if( r ) alert('You entered ' + r);
});

Additional Examples
With HTML
jAlert('You can use HTML, such as bold, italics, and underline!');
Alternate Styles

By changing the value of the $.alerts.dialogClass property (and creating your own CSS
class), you can changes the style of your dialogs:

View the plugin source for additional properties that can be modifed at runtime.

Back to the project page

You might also like