How To Write a Hello World Program in JavaScript

In this post, I will show you how to write a hello world program in JavaScript. It is very simple to write hello world program in JavaScript with few lines. Let’s see HTML <div id=”mydiv2″></div> JAVASCRIPT <script type=”text/javascript”> document.getElementById(“mydiv2”).innerHTML = “Hello, world!”; </script> Here I have used document.getElementById method to return the element with specific … Read more

How to Get Value of Div Content Using jQuery

Hello guys, if you want to get value of div content using jQuery then you can fulfil your need using this example. Just check out this tutorial. HTML <div class=”readonly_label” id=”example”> Other </div> JQUERY First include jQuery library <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js”></script> <script> $(document).ready(function(){ var divContent = $(‘#example’).text(); alert(divContent); }); </script> Read Also: How To Write a … Read more

how to change one dropdown option with name on change of another dropdown option with value

If you want to change one drop-down option name with change of another drop-down option value for your particular need.I am just introducing drop-down option how to use for on change. Just take a look. I am just going to make two dropdown Dependent.Second dropdown is dependent with option name on first dropdown with option … Read more