Javascript Date validation & submit

Discussion in 'General Computer Support' started by aderene12, Jul 17, 2012.

  1. aderene12

    aderene12

    Joined:
    Jul 17, 2012
    Messages:
    1
    Likes Received:
    0
    How do i assign a value to a textbox using javascript
    The variable is defined as pedateXX and textbox name is pedatein and is hidden, see below.
    I have tried using getElementById, but after checking pedatein, it contains a null value.
    var pedateIn = document.getElementById('pedateXX')

    <input type="hidden" name="pedatein" id="pedatein" size="8" maxlength="8" value=/%pedatein%/ autocomplete=OFF/>
    Any help or suggestions would be very much appreciated.
     
    Last edited: Jul 20, 2012
    aderene12, Jul 17, 2012
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.