TRI0N Posted May 22, 2007 Share Posted May 22, 2007 Well knowing how to do this will be nice to know even for other aspects of things I will need to accomplish. alert('Date is: '+ step3.d_month.value +'/'+ setp3.d_day.value +'/'+ step3.d_year.value) ; Okay now why does this not work? Quote Link to comment Share on other sites More sharing options...
xenophobia Posted May 22, 2007 Share Posted May 22, 2007 Well knowing how to do this will be nice to know even for other aspects of things I will need to accomplish. alert('Date is: '+ step3.d_month.value +'/'+ setp3.d_day.value +'/'+ step3.d_year.value) ; Okay now why does this not work? I assumed 'step3' is your form name. Please try this: document.step3.d_month.value; hope this work Quote Link to comment Share on other sites More sharing options...
TRI0N Posted May 22, 2007 Author Share Posted May 22, 2007 Well yes that will work but not what I need. alert('Date is: '+ step3.d_month.value ) ; //WORKS alert('Date is: '+ step3.d_month.value +' Month') ; //WORKS alert('Date is: '+ step3.d_month.value +'/'+ setp3.d_day.value +'/'+ step3.d_year.value) ; //DOES NOT WORK It should create an Alert that says: Date is: 05/22/2007 Quote Link to comment Share on other sites More sharing options...
paul2463 Posted May 22, 2007 Share Posted May 22, 2007 i have just created this on my system and it works var tday = "22"; var tmonth = "05"; var tyear = "2007"; alert ("Date is: " + tday + "/" + tmonth + "/" + tyear); so as long as you variables work then change the t variables in mine with your own and all things being equal it should work fine, I realise it is not different from yours, I had trouble to start with but the javascript error console in firefox is a great tool Quote Link to comment Share on other sites More sharing options...
AndyB Posted May 22, 2007 Share Posted May 22, 2007 Maybe setp3.d_day.value should be step3.d_day.value ?? Quote Link to comment Share on other sites More sharing options...
TRI0N Posted May 22, 2007 Author Share Posted May 22, 2007 OMG! I can't believe I overlooked that. I was down to thinking it just had something to do with a limit on creating static text with dynamic form input. Thanks for point that out.. OMG.. (crawls under a rock to die) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.