Click here to Skip to main content
15,895,370 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have to make a page where i can edit events. I would have to have a dropdown list that puts the name of the event. Then after selecting the event in the dropdown, it would show hidden textboxs like time, place, date of the event. Then i need to add these events using the add button. I added the dropbox but when i select my event, the textboxes don't show.
Posted
Updated 12-Dec-12 17:39pm
v3
Comments
choudhary.sumit 12-Dec-12 23:33pm    
so why you have not started it yet? is there any problem or issue you want to ask?
Kiran Susarla 12-Dec-12 23:36pm    
What is your question here?

1 solution

You can do it as below in clientside code.

<form id="form1"  runat="server">
  <div>
    <select id="Select1" name="D1"  önchange="DataEntryPanel.style.display='block'">
      <option selected="selected" id="">Please Select</option>
      <option id="Wedding">Wedding</option>
      <option id="Lunch">Lunch</option>
    </select><br /><br />

    <div id="DataEntryPanel" style="display: none;">
      Event Name <input id="Text1" type="text" /><br /><br />
      Time       <input id="Text2" type="text" /><br /><br />
      Location   <input id="Text3" type="text" /><br /><br />
      <input type="submit id="btnSubmit" name="btnSubmit" value="Submit" />
    </div>
  </div>
</form>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900