Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <form action = "form.php" >
- Username <input type = text name = "user" > <br>
- <br><br>
- Password <input type = text name = "pass" > <br><br>
- </form>
- <style>#amount { display : none ; background: white; }</style>
- <style>#field {width 70% ; margin: auto; }</style>
- <script>
- function appear ( ) {
- ptr1 = document.getElementById("amount")
- ptr2 = document.getElementById("choice")
- $menuvalue = ptr2.value;
- if ( $menuvalue == "D") {ptr1.style.display = "block" ; return ;}
- else if ($menuvalue == "S") {ptr1.style.display = "none"; return ;}
- else if ($menuvalue == "W") {ptr1.style.display = "block"; return ;}
- else if ($menuvalue == "") {ptr1.style.display = "none"; return ;}
- }
- </script>
- <form action = "form.php" >
- <fieldset id="field"><legend> Please Select A Service Below <br><br></legend>
- <input type = "number" text step = "1" name="amount" id="amount"
- autocomplete = "off" placeholder = "Amount" required><br><br>
- <select name="choice" id ="choice" onchange="appear()" >
- <option value="" > Choose </option>
- <option value="S" > Show </option>
- <option value="D" > Deposit </option>
- <option value="W" > Withdraw </option>
- </select><br><br>
- <input type=submit>
- </fieldset>
- </form>
- <br><br>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement