Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <script src="dados.json"></script>
- <script>
- $(function(){
- $.getJSON("dados.json", function(data){
- x =data.opcoes.length;
- for (i=0; i<x; i++){
- $("#menu").append(data.opcoes[i].nome+ "-" + data.opcoes[i].cpf +"<br>");}
- });
- });
- </script>
- </head>
- <body>
- <div id="menu"></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement