ginerjm Posted February 26, 2023 Author Share Posted February 26, 2023 Kicken - Thank you for what appears to be a concise solution for me. But I have this error. Code: function getDay(dt_id, nam_id) { var str3 = document.getElementById(dt_id).valueAsDate.toUTCString().substring(0,3); alert("Got str3 "+str3); document.getElementById(nam_id).value = str3; return; } This works great for what I need. Thanks again. Quote Link to comment https://forums.phpfreaks.com/topic/315943-get-new-value-of-typedate-field-in-its-onchange-event/page/2/#findComment-1606053 Share on other sites More sharing options...
Barand Posted February 26, 2023 Share Posted February 26, 2023 4 minutes ago, ginerjm said: But I have this error. Which is ?????? Quote Link to comment https://forums.phpfreaks.com/topic/315943-get-new-value-of-typedate-field-in-its-onchange-event/page/2/#findComment-1606055 Share on other sites More sharing options...
ginerjm Posted February 27, 2023 Author Share Posted February 27, 2023 That was a mistake (error). At first I thought my code had an error (it did) but then I corrected it and meant to post my corrected code as the solution and forgot to edit the text. I had already begun. Quote Link to comment https://forums.phpfreaks.com/topic/315943-get-new-value-of-typedate-field-in-its-onchange-event/page/2/#findComment-1606064 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.