Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- function E(id) {
- return document.getElementById(id);
- }
- function changeit(drp, txf)
- {
- dd = E(drp);
- E(txf).value = dd.options[ dd.selectedIndex ].text;
- }
- </script>
- <div style="position:relative; top:0px; left:0px;" >
- <input type="text" id="TextField" style="width:140px; height:23px; position:absolute; top:1px; left:1px; z-index:2; border:none;" />
- <select id="DropDown" onchange="changeit('DropDown', 'TextField')" style="position: absolute; top: 0px; left: 0px; z-index: 1; width: 165px;" >
- <option selected="selected" disabled="disabled">-- Select Column --</option>
- <option> example option one </option>
- <option> example option two </option>
- </select>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement