Guys can you Switch this js code from my modal into my PHP code. because i want to change alert into a MODAL
This is js code.
window.addEvent(“domready”, function(e){
/* Alert */
$(“alert”).addEvent(“click”, function(e){
e.stop();
var SM = new SimpleModal({“btn_ok”:“Alert button”});
SM.show({
“title”:“Alert Modal Title”,
“contents”:“Lorem ipsum dolor sit amet…”
});
})
});
and this code my PHP code. try to input my js code here.
{echo "<script>alert('Request Sent');</script>";
echo "<script type='text/javascript'>window.parent.location='mainpage.php';</script>";