Hello Reader's if you are developing the website that convert the real time data into the div, Then by using Javascript you can do it.
Let's see the example as below:-
<!DOCTYPE html>
<html>
<head>
<script>
function myFunction() {
document.getElementById("change").innerHTML = "Now this is the dynamic data.";
}
</script>
</head>
<body>
<p id="change">This will be hcange on click the buttun</p>
<button type="button" onclick="myFunction()">Try it</button>
</body>
</html>
Here in this code the initial div will be blank but when user click on the toggle button the data inside the div will be change and output will be like this:-
Now this is the dynamic data.
0 Comment(s)