Skip to content

guvra/yamd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Yet Another Modal Dialog

Description

A simple modal dialog using jQuery.

Usage

Show text in a modal dialog:

$.modal().open('Lorem ipsum dolor sit amet, tale sadipscing qui ne, te dicat antiopam torquatos nam.');

Open a modal dialog containing the response of an Ajax request:

$.modal().ajax('/legal/terms');

Show the contents of a DOM element in a modal dialog:

$('#form').modal();

Open a modal dialog on click:

$('.edit').click(function (event) {
    $.modal().ajax('/user/edit', $(event.target).data());
    event.preventDefault();
});

About

A simple modal dialog using jQuery.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published