Auto Generate Cupon Code In JavaScript
Auto Generate Cupon Code In JavaScript
Code....
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>java's</title>
</head>
<body>
<br>
<div class="pro">
<input type="text" placeholder="Enter Yor Cupon Code" id="inputme">
<button id="mybtn">Generate Code</button>
</div>
<script>
document.querySelector("#mybtn").addEventListener("click", function(){
document.querySelector("#inputme").setAttribute("value", "Dalivery Free");
});
</script>
</body>
</html>
No comments