Rudurk
07-16-2006, 02:25 PM
right mm i am kind of stuck on this bit am just learning html
if (document.form1.vdfmm.value < 1&&document.form1.vdfmm.value > 12)
{
dAlert();
}
this works fyn but if i use
if (document.form1.vdfmm.value < 01&&document.form1.vdfmm.value > 12)
{
dAlert();
}
the 01 doesnt seem to be counting how do i make it so it can recognise 01,02,03,04,05,06,07,08,09,10,11,12
the 0 messes it up
this is script is for a credit card validator if it helps you understand it better
if (document.form1.vdfmm.value < 1&&document.form1.vdfmm.value > 12)
{
dAlert();
}
this works fyn but if i use
if (document.form1.vdfmm.value < 01&&document.form1.vdfmm.value > 12)
{
dAlert();
}
the 01 doesnt seem to be counting how do i make it so it can recognise 01,02,03,04,05,06,07,08,09,10,11,12
the 0 messes it up
this is script is for a credit card validator if it helps you understand it better