blackberry/bbUI.js — Issue #31: Styles do not apply if DOM objects are create programatically
Author: raakhtar
Created: 2012-02-29 19:49:22+00:00
State: open

I am trying to create a dynamic comobo box with populating values coming from JSON string from server. However, when i apply the style within the code, it does not apply the style to the create element on screen.

Here is the code

json = jQuery.parseJSON($(msg).find('getCompanyNameResult').text());
var str = "";
for (var i = 0; i < json.Table.length; i++) {
str += '
' + json.Table[i].CompanyName + '
';
}
str += "";
$('#compDiv').append(str);