Multiple Calls Using Simple Modal OSX Dialog Dialog

I am using Simple Modal, an OSX style version. I have two calls of modal and therefore two versions of content. When you press any of the buttons, only the first batch of content is selected.

It is impossible to impose on the content like most modal windows, since there is no javascript on the page to add parameters ... only an external .js file, which I do not want to touch for obvious reasons.

Can someone help me with this problem?

0
source share
1 answer

I did the same on the site that I create. I just created different content for each mod and gave each one a unique identifier. So my content looked something like this:

<a id='help'>HELP CONTENT</a>
<a id='about'>ABOUT CONTENT</a>
<a id='options'>OPTIONS CONTENT</a>

<div id='modal_help'>HELP CONTENT</div>
<div id='modal_about'>ABOUT CONTENT</div>
<div id='modal_options'>OPTIONS CONTENT</div>

JS :

$('a').click(function (e) {
    e.preventDefault();

    $('#modal_' + this.id).modal({OPTIONS});
});

, .

+3

All Articles