sebagai catatan, attribute id dari sebuah element html harus unik. Html yang benar itu seperti ini:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link type="text/css" href="style.css" rel="stylesheet">
<link type="text/css" href="css/jquery.ui.all.css" rel="stylesheet">
<link type="text/css" href="css/jquery.ui.datepicker.css" rel="stylesheet">
<script type="text/javascript" src="js/jquery-1.5.1.js"></script>
<script type="text/javascript" src="js/ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="js/ui/jquery.ui.datepicker.js"></script>
<script type="text/javascript">
$(function(){
$(".tanggal").datepicker({
buttonImage:'css/images/calendar.gif',
buttonImageOnly:true,
showOn:'button'
});
});
</script>
</head>
<body>
<form action="" method="post">
<table width="50%" border="0">
<tr>
<td width="33%"> </td>
<td width="3%"> </td>
<td width="64%"> </td>
</tr>
<tr>
<td>tanggal kirim</td>
<td>:</td>
<td><input type="text" id="tglkirim" name="tglkirim" class="tanggal"></td>
</tr>
<tr>
<td>tanggal di terima</td>
<td>:</td>
<td><input type="text" id="tglterima" name="tglterima" class="tanggal"></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><label>
<input type="submit" name="Save" id="Save" value="Save" />
</label></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</form>
</body>
</html>
kamu gunakan selector class $(".tanggal"), jadi setiap element yang memiliki attribute class="tanggal" akan ada datepicker