MMYY
instead of this, if its four characters long, I want to take the fist 2 characters and set them to M and the last two and set them to Y
// split the date string into m d y tokens
var arDate = sDate.split("/");
var M = arDate[0];
var D = arDate[1];
var Y =...
ok, that javascript rocks. I used it on another form. Thanks.
But.....
let me be more specific and see if i can make this a little harder.
the expire date is formatted mmyy
in your above code, I call final_submit() as an Onsubmit in the <form> tag?
I want something like
<script language="javascript">
function final_submit()
if( document.signup_form.CARD_EXPIRE.value == "" )
{
alert( "Please enter a valid date" );
return false;
}
return true;
</script>
To check a form date before it gets swept off by the...
I need a little help.
i need to stick a simple "experation date" is less than "today date" perl on an already existing .pl.
IF variable is less that today, do nothing, if its greater, I'll redirect them.
I know, I know, its probably super simple and I just need to learn...
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.