I am using $.publish
to populate the dropdown (Struts 2 select tag) after that, I want the dropdown to be auto-selected to a value.
I tried the following:
$.publish("reloadAttributeList");
//$('#selectedAttribute option[value="attributeId"]');
$('#selectedAttribute').val(attributeId).change();
//$('#selectedAttribute').val(attributeId);
None worked.