The public new case screen selects the first area in the list. I would like the default selection to be the Undecided area.
I have tried the following:
$(document).ready(function() {
if( window.location.href.indexOf("pg=pgPublicEdit") > 0 )
{
// sets text to '6'
$("#idDropList_ixArea_oText").val('6');
// sets text to 'Undecided' but does not select the item in the dropdown
$("#idDropList_ixArea_oText").val('Undecided');
// does not work at all
$("#idDropList_ixArea_oText option:selected").removeattr('selected');
$("#idDropList_ixArea_oText option[value='Undecided']").attr('selected', 'selected');
}
});
I know the DLCL() function messes with the dropdown lists, but how do you manipulate them using BugMonkey?