function callall() { var Name = document.getElementById("TextBox1").value; var DOB = document.getElementById("TextBox2").value; var Add = document.getElementById("TextBox3").value; var phn = document.getElementById("TextBox4").value; var Country = document.getElementById("DropDownList1").value; var State = document.getElementById("DropDownList2").value; var City = document.getElementById("DropDownList3").value; var msg = "Name: " + Name + ",DOB: " + DOB + ",Add: " + Add + ", phno: " + phn + ",Country: " + Country + ",State: " + State + ",City: " + City; return confirm(msg); }
var ddlCountry = document.getElementById("DropDownList1") var Country =ddlCountry.options[ddlCountry.selectedIndex].text;
<script type="text/javascript"> function GetCountryDetails() { // Get id of dropdownlist var parm = document.getElementById("ddlCountry"); // Get Dropdownlist selected item text document.getElementById('lbltxt').innerHTML = parm.options[parm.selectedIndex].text; // Get Dropdownlist selected value item document.getElementById('lblid').innerHTML = parm.options[parm.selectedIndex].value; } </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)