Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Input Buku</title>
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
- <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
- <style type="text/css">
- .label{
- display: block;
- font-size: small;
- margin-top: 5px;
- }.error{font-size: small;color:rgb(255, 0, 0);}
- body{
- width: fit-content;
- text-align: center;
- margin: auto;
- background-image: url(fang-wei-lin-H1IRUS1vEFA-unsplash.jpg);
- background-size: cover;
- background-position: center;
- background-repeat: no-repeat;
- }
- .content{
- position: relative;
- width: 510px;
- height: fit-content;
- margin: auto;
- margin-top: 15%;
- background: #FFFFFF;
- border: 1px solid #ffffff;
- box-shadow: 10px 10px 10px rgba(47, 47, 47, 0.25);
- border-radius: 40px;
- filter: opacity(90%);
- }
- </style>
- </head>
- <body>
- <div class="content">
- <h1>Form Buku Baru </h1>
- <br>
- <p>Judul Buku Baru</p>
- <input type="text" id = "txtbukubaru" />
- <p>Daftar Judul Buku </p>
- <select name="daftarbook" id="semuabuku" >
- <option value="">Pilih Judul</option>
- </select>
- <p style="padding-top: 3%;">
- <input type="button" id="btntambah" value="Tambah Buku" >
- </p>
- <script>
- $('#btntambah').click(function(){
- var bukubaru = $('#txtbukubaru').val();
- $('#semuabuku').append(new Option(bukubaru, bukubaru));
- })
- </script>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement