help in code

Discussion in 'PHP' started by mahiraj, Oct 18, 2007.

  1. #1
    Hi i have the following code i want that when i click on the "by name" option
    my value of text box date "from and to "should be hide and when i click on the
    date option my name textbox should be hide please help me immediately

    thanx in advance

    <html>
    <head>

    </head>
    <title>asd</title>

    <body>
    Search By&nbsp;&nbsp;&nbsp;&nbsp;
    <select onchange="text();">
    <option value="name">By Name</option>
    <option value="date">By Date</option>
    </select><br><input type="text">
    From &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text"> To <input type="text"><br>
    Select File&nbsp;&nbsp;&nbsp;&nbsp;<input type="file"name="file"><br><br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="button"name="submit" value="submit">
    </body>
    </html>
     
    mahiraj, Oct 18, 2007 IP
  2. papa_face

    papa_face Notable Member

    Messages:
    2,237
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    285
    #2
    This is javascript, not PHP.
     
    papa_face, Oct 18, 2007 IP
  3. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #3
    You cannot hide, you can disable them , check javascript tutorial at w3schools.com
     
    it career, Oct 18, 2007 IP