Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > General Computer Support > Javascript Date validation & submit

Reply
Thread Tools

Javascript Date validation & submit

 
 
aderene12 aderene12 is offline
Junior Member
Join Date: Jul 2012
Posts: 1
 
      07-17-2012
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 by aderene12; 07-20-2012 at 05:09 PM.. Reason: To simpify the request
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to submit a from using JavaScript [without using submit button]? jatrojoomla Javascript 1 08-24-2006 04:46 AM
javascript submit() function performs differently from clicking submit ljlolel Javascript 2 05-18-2006 04:35 PM
javascript submit problem : form won't submit Joop Javascript 5 03-23-2005 07:48 PM
Date, date date date.... Peter Grison Java 10 05-30-2004 01:20 PM
Given a date, how to find the beginning date and ending date of that week Matt ASP .Net 1 11-08-2003 09:14 PM



Advertisments