top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What are the tasks that are involved after the drop-down list gets created?

0 votes
265 views
What are the tasks that are involved after the drop-down list gets created?
posted Oct 3, 2016 by Sathyasree

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes
  • Drop down lists are easy to add on a template column and then added further in HTML view.

  • There are two tasks involved after populating the drop-down list and they are as follows:

  • Populate the list that is being used by the web application or any application according to the requirement.

  • Pre-select an appropriate item to be added on the list of drop-down that is just being created.

  • The drop-down list gets created with the field already being filled and the category being pre-selected from before that has to be displayed in the beginning.

answer Oct 3, 2016 by Shivaranjini
Similar Questions
+2 votes

I am Getting may JSON array . But i can't know how to fill dropdown list with this array ...

<script>
  function Customer_Id()  
  {  
      var Cus_id = document.getElementById("customer").value;  
      alert(Cus_id);
      var xhr;  
      if (window.XMLHttpRequest) // Mozilla, Safari, ... 
       {   
            xhr = new XMLHttpRequest();  
       }  
        else if (window.ActiveXObject) // IE 8 and older 
        {   
            xhr = new ActiveXObject("Microsoft.XMLHTTP");  
        }  
          var data = "Customer_ID=" + Cus_id;  

             xhr.open("POST", "Volumne_WebUser.php", true);   
             xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");                    
             xhr.send(data);
              xhr.onreadystatechange = display_data;  
      function display_data() {  
     if (xhr.readyState == 4) {  
      if (xhr.status == 200) {  
      var response = xhr.responseText;
      var obj = JSON.parse(response);
      alert(obj['Name']);     
      } else {  
        alert('There was a problem with the request.');          
      }  
     }  
    }  
  }
</script>
...