มีวันที่ให้เลือก แต่พอจะไปกด pop up อันที่ 2 มันไม่มีอะไรขึ้นมาเลย
โค๊ดแบบนี้ครับ
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--Doctype is not required - can be HTML or XHTML-->
<html>
<head>
<title>Minimum Required Code - Epoch DHTML Javascript Calendar</title>
<link rel="stylesheet" type="text/css" href="epoch_styles.css" />
<script type="text/javascript" src="epoch_classes.js"></script>
<script type="text/javascript">
/*You can also place this code in a separate file and link to it like epoch_classes.js*/
var bas_cal,dp_cal,ms_cal;
window.onload = function () {
dp_cal = new Epoch('epoch_popup','popup',document.getElementById('popup_container'));
};
</script>
</head>
<body>
<h2>Popup</h2>
<form method="get" action="#">
<input id="popup_container" type="text" name="text1"/>
</form>
<h2>Popup</h2>
<form method="get" action="#">
<input id="popup_container" type="text" name="text2"/>
</form>
<link rel="stylesheet" type="text/css" href="epoch_styles.css" />
<script type="text/javascript" src="epoch_classes.js"></script>
<script type="text/javascript">
/*You can also place this code in a separate file and link to it like epoch_classes.js*/
var dp_cal,dp_cal2;
window.onload = function () {
dp_cal = new Epoch('epoch_popup','popup',document.getElementById('popup_container'));
dp_cal2 = new Epoch('epoch_popup','popup',document.getElementById('popup_container2'));
};
<h2>Popup</h2>
<form method="get" action="#">
<input id="popup_container" type="text" name="text1"/>
</form>
<h2>Popup</h2>
<form method="get" action="#">
<input id="popup_container2" type="text" name="text2"/>
</form>