Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2008
    Posts
    66
    Thanks
    18
    Thanked 0 Times in 0 Posts

    How do i change the value in DIV tag

    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.

    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.

    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.

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,198
    Thanks
    80
    Thanked 4,453 Times in 4,418 Posts
    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??
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •