Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions Example/Loop/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>

<style>

li{
list-style: none;
border: solid 1px black;
height: 25px;
width: 25px;
border-radius: 100px;
text-align: center;
float: left;
padding: 25px;
margin: 5px;
background-color: aqua;
}

</style>

<script>
function box(){

list = document.getElementById("box_no").value;

let print_data = document.getElementById("print");

for(let i = 0; i <= list ; i++){

print_data.innerHTML += "<li>"+i+"</li>"

}



}
</script>
</head>
<body>

<lable>Enter Number : </lable>
<input type="text" id="box_no">
<button onclick="box()">Result</button>

<ul id="print">

</ul>





</body>
</html>
Empty file added Example/Loop/loop.js
Empty file.