私のウェブページには、次のリンクがあります。
<\a onclick="#" class="compose"></a>
リンクをクリックすると、次のスクリプトがアクティブになります。
$(function(){
$('.compose').click(function() { // Button which will activate our modal
$('#popup_bestanden_edit_name').reveal({ // The item which will be opened with reveal
animation: 'fade', // fade, fadeAndPop, none
animationspeed: 600, // how fast animtions are
closeonbackgroundclick: true, // if you click background will modal close?
dismissmodalclass: 'close' // the class of a button or element that will close an open modal
});
return false;
});
});
上記のスクリプトは、この DIV をポップアップで表示します。
<div id="popup_bestanden_edit_name">
<div id="popupheading">
Naam wijzigen
</div>
<div id="popupcontent">
<p><form action="" method="post" name="naamwijzigen"><input name="naam" type="text"></form></p>
<a href="#" class="popupbutton green close"><img src="<?php echo $domein.'/images/confirm_popup/tick.png'; ?>">Ja, wijzigen</a>
<a href="#" class="popupbutton red close"><img src="<?php echo $domein.'/images/confirm_popup/cross.png'; ?>">Nee, annuleren</a>
</div>
開いたポップアップは、Web サイト上のドキュメントの名前を編集する機会を人々に提供します。そのため、リンク<\a onclick="#" class="compose"></a>
がクリックされると、ID ( $fetch_row['id']
) をポップアップに送信する必要があるため、これをさらにスクリプトで使用できます。
誰もこれを行う方法を知っていますか?