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 =…

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>…

Read More

how to change second drop down list on change of first drop down list option

HTML <select name=”select11″ id=”select11″> <option value=”1″>Fruits</option> <option value=”2″>Animals</option> <option value=”3″>Birds</option> <option value=”4″>Cars</option> </select> <select name=”select12″ id=”select12″> <option value=”1″>Litchi</option> <option value=”1″>Mango</option> <option value=”1″>Orange</option> <option value=”2″>Lion</option> <option value=”2″>Fox</option> <option value=”2″>Bear</option> <option value=”3″>Parrot</option> <option value=”3″>Hawk</option> <option value=”4″>Maruti</option> </select> JAVASCRIPT $(“#select11”).change(function() { if($(this).data(‘options’) ==…

Read More