Here is what I am trying to do:
for (var i = 0; i < paramLength; i++) {
if (parameters[i].substr(0, 2) == '@_')//Required
{
$('#ddParam' + id).append($("<option style='font-style:italic'></option>").attr("value", parameters[i]).text(parameters[i] + ' (REQUIRED)'));
}
else
{
$('#ddParam' + id).append($("<option></option>").attr("value", parameters[i]).text(parameters[i]));
}
}
NOTICE the STYLE tag in the OPTION -- this works fine for me in FF but (hang on to your hat) -- is not working in IE8 and that (unfortunately) is the browser that I am designing this app for....
Any suggestions and thanks!