What are the difference between undefined and not defined in javascript?
No Answer is Posted For this Question
Be the First to Post Answer
How Can I get facebook fans/likes?
Explain the role of deferred scripts in javascript?
What is the difference between "var" and "let" keywords?
What are two-way data binding and one-way data flow, and how are they different?
How to create an object in javascript?
What Is The Disadvantages Using InnerHTML In JavaScript?
Explain javascript closures by example.
How do you clear an array in javascript?
How Does Function Hoisting Work in JavaScript?
What does window.print() do in Javascript?
What is the difference between null and undefined?
hi i want validations for two drop down lists. when user enter to second list by skipping first list alert box should appear. <HTML><HEAD> <TITLE>drop down validation</TITLE> <script type="text/javascript"> function validateForm(){ if(document.ItemList.Item.selectedIndex==0) { alert("Please select item from first list."); document.ItemList.Item.focus(); return false; } return true; } </SCRIPT> </HEAD> <BODY> Please choose an item from the drop down menu: <form name="ItemList" method="post" action="asp.html" onsubmit="validateForm()"> <table width="100%" border="0"> <tr> <td width="135">Choose a username: </td> <td> <select name="Item"> <option value selected> SELECT </option> <option value>Apples</option> <option value>Oranges</option> </select> <table width="100%" border="0"> <tr> <td width="135">Choose a username: </td> <td> <select name="Item" onclick="validateForm()"> <option value selected> SELECT </option> <option value>Apples</option> <option value>Oranges</option> </select> <input type="submit" name="Submit" value="Submit"> </td></tr></table></form> </BODY> </HTML> please any body help me thanks