I have a dynamically generated selection with some parameters, and it shows the parameters in regular browsers, but its options are empty in IE. Here is the generated HTML:
<select name="0" id="custom_0" style="border-bottom: #c0cedb 1px solid; border-left: #c0cedb 1px solid; background-color: #ededed; width: 280px; font-size: 0.87em; border-top: #c0cedb 1px solid; border-right: #c0cedb 1px solid"> <option id="1000" value="0" name="00">1x2GB ECC DDRIII 2GB ECC DDRIII</option> <option id="1001" value="10" name="01">2x2GB ECC DDRIII 4GB ECC DDRIII (+10.00 €)</option> </select>
I can’t show you javascript since there are so many of it, and I could make it simple just to demonstrate. Perhaps you had some of you, you would have had a similar experience, and you could understand that. Thanks
I added some javascript:
$('#custom_order').append('<tr id="custom_'+category+'_row"><td'+padding+'>'+header+'<select id="custom_'+category+'" name="'+category+'" style="background-color:#EDEDED;border:1px solid #C0CEDB;width:280px;font-size:0.87em"></select>'+plusspan+'</td></tr>'); for (var i=0;i<components[category]['value'].length;i++){ $('#custom_'+category).append('<option id="'+components[category]['value'][i]['id']+'" value="'+components[category]['value'][i]['price']+'"></option>'); removals(category,i); dependencies(category,i); selectInput(category); } getDiff(category);
Function
getDiff () adds values ​​to parameters using the html () function. Strange, if I warn the html option immediately after the getDiff () function, it shows the filled value. And I put the getDiff () function in a for loop, where the parameters are generated, it fills the values ​​and shows them in IE, not in the last one.
I call getDiff () outside the loop to optimize, and since I can add values ​​later after creating all the parameters. Well, at least I thought I could, since it works on Firefox and Chrome.
javascript jquery internet-explorer
donkapone
source share