Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. <select id="select-styled" onclick="selection()">
  2. <option selected value="">Nessuna selezione</option>
  3. <option value="ds">Disposizioni semplici</option>
  4. <option value="dr">Disposizioni ripetizione</option>
  5. <option value="cs">Combinazoni semplici</option>
  6. <option value="cr">Combinazoni ripetizione</option>
  7. <option value="ps">Permutazioni semplici</option>
  8. <option value="pr">Permutazioni ripetizione</option>
  9. <option value="gs">Gestione stringa</option>
  10. </select>
  11. </div>
  12. <br>
  13. <div class="hidden" style="width:200px;" onchange="showDiv()">
  14. <label for="nTextField">Inserire n</label><br>
  15. <input type="text" name="textField" class="textField" id="nTextField" ><br><br>
  16. <label for="kTextField">Inserire k</label><br>
  17. <input type="text" name="textField" class="textField" id="kTextField" ><br><br>
  18. <label for="answerTextField">Ecco la risposta</label><br>
  19. <input type="text" name="textField" class="textField" id="answerTextField" ><br><br>
  20. <input type="text" name="textField" class="stringManagement" id="stringManagement">
  21. </div>
  22.  
  23. function showDiv() {
  24. getSelectValue = document.getElementById("select").value;
  25. if (getSelectValue == "1") {
  26. document.getElementById("select").style.display = "block";
  27. } else {
  28. document.getElementById("select").style.display = "none";
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement