jquery.edbox.js is a lightweight jquery responsive modal window plug-in. With this jquery modal window plug-in, you can easily create responsive, animated, and AJAX-based modal dialog effects.
Its features include:
You can change the style of the modal window through CSS.
You can customize the head and foot content of the modal window.
You can customize the loading effect.
Supports content in multiple formats: HTML, text, images and AJAX content, etc.
Supports 4 alert scenario modes: success, info, warning and danger.
The animation for opening and closing the modal window can be customized.
Support callback methods.
Installation
You can install the jquery.edbox.js plug-in through npm or yarn.
npm install jquery.edbox
yarn add jquery.edbox
## How to use
on the page Introduce the edbox.css file, jquery and jquery.edbox.js files.1 2 3 |
|
HTML structure
The simplest way to use a modal window is to use aas the modal window content Container, in which HTML, text, images and AJAX content can be placed.
1 |
|
1 |
|
Initialization plug-in
1 |
|
Loading HTML, pictures and AJAX content in the modal window
The method of loading HTML content in the modal window is as follows: in data Just fill in your HTML content in the -box-html attribute.1 |
|
1 |
|
1 |
|
1 2 3 |
|
The method of adding AJAX content is as follows:
1 2 |
|
1 2 3 4 5 |
|
Method
The available methods of jquery.edbox.js modal window plug-in are:1 2 3 4 5 6 7 8 9 10 11 12 |
|
The above is the detailed content of About how to use the jquery.edbox plug-in. For more information, please follow other related articles on the PHP Chinese website!