Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <select id="select-styled" onclick="selection()">
- <option selected value="">Nessuna selezione</option>
- <option value="ds">Disposizioni semplici</option>
- <option value="dr">Disposizioni ripetizione</option>
- <option value="cs">Combinazoni semplici</option>
- <option value="cr">Combinazoni ripetizione</option>
- <option value="ps">Permutazioni semplici</option>
- <option value="pr">Permutazioni ripetizione</option>
- <option value="gs">Gestione stringa</option>
- </select>
- </div>
- <br>
- <div class="hidden" style="width:200px;" onchange="showDiv()">
- <label for="nTextField">Inserire n</label><br>
- <input type="text" name="textField" class="textField" id="nTextField" ><br><br>
- <label for="kTextField">Inserire k</label><br>
- <input type="text" name="textField" class="textField" id="kTextField" ><br><br>
- <label for="answerTextField">Ecco la risposta</label><br>
- <input type="text" name="textField" class="textField" id="answerTextField" ><br><br>
- <input type="text" name="textField" class="stringManagement" id="stringManagement">
- </div>
- function showDiv() {
- getSelectValue = document.getElementById("select").value;
- if (getSelectValue == "1") {
- document.getElementById("select").style.display = "block";
- } else {
- document.getElementById("select").style.display = "none";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement