hi,Thanks.My code looks like.., var dateimg = document.createElement('input'); dateimg.setAttribute("type", "image"); dateimg.setAttribute("align", "absmiddle"); dateimg.setAttribute("name", "dateimg"); dateimg.setAttribute("id", "dateimg"); dateimg.setAttribute("src", "dynCalendar.gif"); cellRightIndex.appendChild(dateimg);Now i have a Calendar image in a cell. i want to add a textbox and when a date is selected , the textbox should show the date.ThanksMuthu