• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Load text field based on another

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is this library with good samples that may help you: http://javascriptcalendar.org/javascript-date-picker.php
 
lakshmi sridharan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where's your code? What have you tried so far?
 
lakshmi sridharan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic