i face a problem where to display the calendar when the page loads and select the date and assign it to a variable. the calendar should not be hidden after selecting the date because user can select another date if required.
this is my html :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Date</title>
<script type="text/javascript" src="cal.js"></script>
</head>
<body>
<td width="65%" colspan="2" class="textfieldalign">
<input type="hidden" name="regddate" id="regddate" maxlength="10" >
<div id="datePi" ></div>
</td>
</body>
<script>
onLoadInitCalendar();
function onLoadInitCalendar(){
scwShow(document.getElementById('datePi'),'onClick','');return false;
}
</script>
</html>
i have used cal.js i am not able to past the code here.
here is the sample how the calendar should look like.

You need to have a look at inline datepicker
Fiddle