Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- </head>
- <body>
- <fieldset><legend>Escolha</legend>
- <select>
- <optgroup label="Decimal" onclick="f_decimal()">
- <option onclick="carro()">Carro</option>
- <option onclick="moto()">Moto</option>
- </optgroup>
- </select>
- </fieldset>
- <script>
- function carro(){
- alert("Você escolheu carro.")
- }
- function moto(){
- alert("Você escolheu moto.")
- }
- </script>
- </html>
Add Comment
Please, Sign In to add comment