Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
- </head>
- <body>
- <select id="pilih" name="pilih">
- <option value="">default</option>
- <option value="1">1</option>
- <option value="2">2</option>
- <option value="3">3</option>
- </select>
- <div id="container">
- </div>
- </body>
- <script type="text/javascript">
- $('#pilih').change(function(){
- var jml=$('#pilih').val();
- for(var i=0;i<jml;i++){
- $('#container').append("<textarea></textarea>");
- }
- });
- </script>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement