Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. <script>
  2. function E(id) {
  3. return document.getElementById(id);
  4. }
  5. function changeit(drp, txf)
  6. {
  7. dd = E(drp);
  8. E(txf).value = dd.options[ dd.selectedIndex ].text;
  9. }
  10. </script>
  11. <div style="position:relative; top:0px; left:0px;" >
  12.  
  13. <input type="text" id="TextField" style="width:140px; height:23px; position:absolute; top:1px; left:1px; z-index:2; border:none;" />
  14.  
  15. <select id="DropDown" onchange="changeit('DropDown', 'TextField')" style="position: absolute; top: 0px; left: 0px; z-index: 1; width: 165px;" >
  16. <option selected="selected" disabled="disabled">-- Select Column --</option>
  17. <option> example option one </option>
  18. <option> example option two </option>
  19. </select>
  20.  
  21. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement