By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,905 Members | 2,064 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,905 IT Pros & Developers. It's quick & easy.

Dynamic dropdown list with append method not working in Internet Explorer

P: 1
Hi guys,
my problem is that in ie11 my dynamic drop down select list not showing at all!!,, i mean that in all browsers is working except ie11,, i m using append method like that,

Expand|Select|Wrap|Line Numbers
  1.  
  2. function loadDynamicDdl(ajaxUrl , ddlId) {     
  3.     $.ajax({
  4.         dataType:'json',
  5.         type: 'GET',
  6.         url: ajaxUrl,
  7.         cache:false,
  8.        // async:false,
  9.         success:function (response) {           
  10.             var ddl = $('#' + ddlId);
  11.             ddl.empty();           
  12.             var opts = response.Options;         
  13.             $.each(opts, function(i, item) {
  14.  
  15.               ddl.append($("<option />").val(item.Value).text(item.DisplayText)); 
  16.             });
  17.         },
  18.         error:function (jqXHR, exception) {
  19.             //alert("There was an error loading dropdownlist.");
  20.         }
  21.     });
  22. }
  23.  
what is going wrong in ie? :( please guys any help would be really appreciated..
Thank you all
Nov 28 '14 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.