jQuery Alert Dialog, display Alerts
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
images
.gitattributes
LICENSE
README.md
_config.yml
alert.jquery.css
alert.jquery.js
alert.jquery.min.js
demo.html

README.md

jquery.alert

Jquery Alert without Bootstrap

Examples

Example Example with Template Example Mobile

Usage

 $('#trigger').click(function(){
	$.createAlert({
		attachAfter: '#trigger',
		title: 'You have reached the limit or your quota!',
		template: `
			<p> This a template to provide some info to the customer <p>
			<p> <strong> Alert: </strong> Read it carefully </p>`,
		confirmText: 'Accept',
		confirmStyle: 'blue',
		callback: null
	});
	$.showAlert();
 });

#trigger will be the element that will show the alert when clicked.

Params

attachAfter element after which the dialog html structure will be placed.

title string to be shown as dialog title.

template html or plain text string to be shown after the title.

confirmText string to the "accept" button.

confirmStyle style to the "accept" button. It's the name of a css class. You can add more styles in the alert.css.

callback function (without params) that will be executed by clicking the "accept" button. It is optional but you can also leave it null.