I am trying to add more spaces between words.
I retrieved the record from ajax. I just want to add it on the combo box. But I need to make space between words. But It doesn't make as I expect
Jquery Code
for (var i = 0; i < data.d.length; i++) {
$('#ComboChangeAccNo').append($('<option>', {
value: data.d[i].seqNo,
text: data.d[i].Name + ' ' + data.d[i].RollNo+ ' ' + data.d[i].RollID + ' ' + data.d[i].accNo + ' ' + data.d[i].seqNo + ' ' + data.d[i].amount + ' ' + data.d[i].amountType
}));
console.log("Data 0 =" + data.d[i].seqNo);
}
It is printing without space. I tried like below also. It considers as text instead of html
text: data.d[i].Name + ' ' + data.d[i].RollNo+ ' ' + data.d[i].RollID + ' ' + data.d[i].accNo + ' ' + data.d[i].seqNo + ' ' + data.d[i].amount + ' ' + data.d[i].amountType