Expand|Select|Wrap|Line Numbers
- <html>
- <head>
- <title>Hide Me</title>
- <script type="text/javascript">
- function xSwitchTxt(msg) {
- //alert(msg);
- document.getElementById(msg+"EventOther").style.display='none';
- document.getElementById(msg+"Event").style.display='block';
- }
- function xSwitchCombo(msg) {
- // alert(msg);
- document.getElementById(msg+"Event").style.display='none';
- document.getElementById(msg+"EventOther").style.display='block';
- }
- function xHide(msg) {
- document.getElementById(msg).style.display='none';
- }
- </script>
- </head>
- <body>
- <table border="1" width="500">
- <tr>
- <td bgcolor="#FFFFCC">
- <p align="center"><b><font size="4">Select your name. </font></b></p>
- <p align="center"><b><font size="4">If it's not there Double click the input box and enter.</font></b></td>
- </tr>
- <tr>
- <td bgcolor="#CCFFCC"><form id="form1" name="form1" method="post" action="" >
- <p align="center"><br>
- <select id="L1Event" name="L1Event" ondblclick="xSwitchCombo('L1');" size="1" >
- <option></option>
- <option>John</option>
- <option>Tony</option>
- </select></p>
- <p align="center">
- <input id="L1EventOther" name="L1EventOther" ondblclick="xSwitchTxt('L1');" size="30"><br>
- Double Click the input box to toggle between boxes</p>
- <script>
- xHide('L1EventOther');
- </script>
- </form></td>
- </tr>
- </table>
- </body>
- </html>
This functionality is used when alternate data needs to be added to the database. The recommended list of selections reside in the combobox. The reason it is in an ASP extension, I have other ASP code working. I created the attached code for simplicity.
Any assistance is greatly appreciated...John