• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Load text field based on another

 
lakshmi sridharan
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

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.

thanks
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
 
lakshmi sridharan
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hebert Coelho wrote:There is this library with good samples that may help you: http://javascriptcalendar.org/javascript-date-picker.php


Hi,

I don wan calendar objects..instead i need a solution for automatically loading a value in textbox2 when textbox1 is loaded with a value.

thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where's your code? What have you tried so far?
 
lakshmi sridharan
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic