views:

320

answers:

0

Hi there,

a question from a designer in a developer forum uff :-)

It is possible to have more than one modal link? I've 9 pictures and by clicking on of them a modal individual (ever pict) window should appear. But I've no ideas how I realise it. :-) My html:

<div class="box" id="b4"><a class="modallink" href="#"><img src="04/kochen-04.jpg" alt=""/></a></div>

My Modal content:

<div id="detail04">
<h2>Sample Data</h2>
<p>click <a href="#" class="simplemodal-close">close</a>.</p>

<div id="detail05"> and so on ... </div>

"My" jQuery:

$('#otherLink, a.modallink').click(function (e) {
  e.preventDefault();
  $("#detail04").modal({
   overlayClose:true,
  });
 });

Thanks for helping! :-)

Kind regards Andreas