Javascript Date validation & submit

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

  1. aderene12

    aderene12

    Joined:
    Jul 17, 2012
    Messages:
    1
    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. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jimmy
    Replies:
    3
    Views:
    1,750
    Render Me
    Sep 12, 2005
  2. dipesh10
    Replies:
    0
    Views:
    1,703
    dipesh10
    Jun 27, 2007
  3. Shane

    To Javascript, or not to Javascript

    Shane, Aug 29, 2005, in forum: NZ Computing
    Replies:
    5
    Views:
    491
    Waylon Kenning
    Aug 30, 2005
  4. Kavitha Shalini
    Replies:
    1
    Views:
    480
    Hermit Dave
    Jan 17, 2004
  5. write2atif
    Replies:
    0
    Views:
    4,323
    write2atif
    Apr 30, 2009
Loading...

Share This Page