Consider the following scenario:
Textbox1 button
Textbox2
When i click the button calendar pops up and i select a date which gets load in the textbox1.
After this happens i want textbox2 also to be filled with the a date automatically without user clicking in textbox2.
please help to resolv this.I tried with OnChange() function but it didn work.
Bear Bibeault wrote:Where's your code? What have you tried so far?
In the above code i m using a buttton for second input box which i dont want.
Instead when the first button is clicked i want the value loaded in textbox2.
I tried calling the checkExpirationDate() in first button onclick but it didn work
document.layers? Is this code from 1998? You really need to update your JavaScript knowledge. That's an antiquated reference that simply doesn't exist in most browsers.
And using document.write() is likely the wrong approach as well.
What are you trying to achieve by using these ancient techniques?