Guest User

Corrected

a guest
Dec 8th, 2016
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.25 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4.  
  5. <input type="checkbox" id="_My.notFinal" onchange='hello()'>
  6. <label><b>Buying for someone else.</b>
  7.   <label>&nbsp;
  8.  
  9.     <span id="LicenseCustomer" style="display:none">
  10.  
  11. <tr valign=middle>
  12.     <td class="bodycopy" align=right width=160><b>License Contact:</b>&nbsp;</td>
  13.     <td class="smallcopy" nowrap><input name="_My.LicenseContact" type="text" class="inputBox" size="32" _label="<br>License Contact"></td>
  14.     </tr>
  15.     <tr valign=middle>
  16.     <td class="bodycopy" align=right><b> License E-mail Address:</b>&nbsp;</td>
  17.     <td class="smallcopy" nowrap><input name="_My.LicenseEmail" type="text" class="inputBox" size="32" _label="<br> License E-mail Address"></td>
  18.     </tr>
  19.     <tr valign=middle>
  20.     <td class="bodycopy" align=right><b> License Phone:</b>&nbsp;</td>
  21.     <td class="smallcopy" nowrap><input name="_My.LicensePhone" type="text" class="inputBox" size="32" _label="<br> License Phone"></td>
  22.     </tr>
  23.  
  24. </span>
  25.  
  26.  
  27. <script>
  28. function hello() {
  29.  
  30.   var lfckv = document.getElementById("_My.notFinal").checked;
  31.  
  32.   if (lfckv) {
  33.  
  34.     document.getElementById("LicenseCustomer").style.display = "block";
  35.   } else {
  36.  
  37.     document.getElementById("LicenseCustomer").style.display = "none";
  38.   }
  39. }
  40. </script>
  41.  
  42. </body>
  43. </html>
Add Comment
Please, Sign In to add comment