SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Dec 2000
    Location
    Lauderdale & Philly
    Posts
    124
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Menu Pass with javascript

    Hi
    Suppose I have a form, on the left there is a dropdown menu with one of the fields set as "Date". On the right there is a empty textbox. Is there a way to use the onChange control to make it so when the user selects "Date", in the textbox it automaticly puts in 01/31/2000, this way they see the right format to enter the date as.

  2. #2
    SitePoint Zealot
    Join Date
    Dec 2000
    Location
    Lauderdale & Philly
    Posts
    124
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nevermind I got it...

    <script language="JavaScript"><!--
    function onChange() {
    var Current = document.formName1.TestForm.selectedIndex;
    document.formName1.currentText3.value = document.formName1.TestForm.options[Current].value;
    }
    //--></script>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •