masterxc

Untitled

Jul 25th, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.78 KB | None | 0 0
  1.       <form id="form1" name="form1" method="post">
  2.         Search Type:
  3.           <label>
  4.             <input name="SearchTypeSelect" type="radio" id="SearchTypeSelect_0" onlick="showComputerForm()" value="computer"/>
  5.           Computers</label>
  6.         <label>
  7.           <input type="radio" name="SearchTypeSelect" value="license" onclick="license()" id="SearchTypeSelect_1"/>
  8.           Licenses</label>
  9.       </form>
  10.  
  11. jscript:
  12.  
  13. function license() {
  14.     document.getElementById("formLicense").style.visibility = "visible";
  15.     document.getElementById("formComputer").style.visibility = "hidden";
  16.     populate();
  17. }
  18. function showComputerForm() {
  19.     document.getElementById("formComputer").style.visibility = "visible";
  20.     document.getElementById("formLicense").style.visibility = "hidden";
  21.     alert("ok");
  22. }
Advertisement
Add Comment
Please, Sign In to add comment