title: code for Binding JSON string to dropdownlist
body: <p>I have gone mad trying to bind the json string to the dropdown. Please can somebody help??</p>
  
  <p>My dropdownlist id is 'ddlteams'</p>
  
  <p>My json string is in this form : </p>
  
  <pre><code>"{"TeamList" : [{"teamid" : "1","teamname" : "Barcelona"}]}"
  </code></pre>
  
  <p>so first i convert into an object.</p>
  
  <pre><code>var objdata = $.parseJSON(jsonObj.d);
  </code></pre>
  
  <p>Then i add my code given below.</p>
  
  <pre><code>$('#ddlteams').children().remove();
  </code></pre>
  
  <p>I am having problem with the below code. Please can somebody help me with this</p>
  
  <pre><code>$.each(objdata, function(i, val) {
      $('#ddlteams').append('&lt;option value="' + objdata.TeamList[0].teamid + '"&gt;' + TeamList[0].teamname + '&lt;/option&gt;');
  });
  </code></pre>