I would change the submit button to a standard button and use the onClick event to edit your date field...upon a valid date use document.formname.submit(). You would need to edit the script so it returns a string that indicates the field is valid.
For example:
<input type="button"...
This function will edit dates in the format MM/DD/CCYY or MMDDCCYY and returns in the format MM/DD/CCYY. You need only pass the text field object and text field value. It will validate characters, months and number of days in a month. If the entry is invalid it returns focus to that field...
My apologies...I was trying to keep it simple. I believe you have already answered my question but I will elaborate in case anyone has any further ideas.
I have code that loads up an interface file from the client and converts it to XML. I have developed a web-based front end to act as a...
You could put the html in a span or div and use .innerHTML to change the class. For example:
function Change(){
form.document.all('dynamTD').innerHTML =
'<td class="tdnewclass">' +
.....;
}
</script>
<span id="dynamTD">
<td class="tdclass">
<input...
I have no affiliation with the following site except for often referring to it for JavaScript code to use in a job related site. It has rarely let me down. The only negative is the recurring pop up ad it contains.
http://irt.org
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.