...

View Full Version : How do i change the value in DIV tag



adusumalli
12-09-2009, 09:24 PM
I used div tag in my field. that field has date value. there is another field that is also date field and it's in div tag.

when i change the first date field automatically second date field should be changed with the first date value.

Here is my first date field code.



<div id=apptTimeEditOD style="display:<%=appt.allday()?"none":"block" %>; padding: 4px 4px 4px 4px; position: absolute; width: 90; height: 22; left: 85; top: 2; text-align: left;">
<%=_r.drawDatePicker( _ahsPage, "startDate", appt.getApptDate()) %>
</div>


Here is my second date field code.



<div id=apptTimeEditEnD style="display:<%=appt.allday()?"none":"block" %>; padding: 4px 4px 4px 4px; position: absolute; width: 90; height: 22; left: 85; top: 2; text-align: left;">
<%=_r.drawDatePicker( _ahsPage, "startDate1", appt.getApptDate() )%>
<div id=apptODEndTime style="position: absolute; width: 90; height: 22; left: 140; top: 2; text-align: left;" > </div>
</div>


how do i change my 2nd date field value with first date value when i do change in first date field.

Old Pedant
12-09-2009, 11:46 PM
How can we guess, when we have no idea what HTML and JavaScript your server side code there (ASP or JSP, I assume, from the <%= tag) is producing??



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum