I am trying to delect the value selected on a drop down field with java. My drop down field is #q98 with a css class of .analyst. I have tried everything below and the value previously selected persists.
$('#q98 option:selected').removeAttr('selected');
$('#q98 select').val('');
$('.analsyt option:selected').removeAttr('selected');
$('.analyst select').val('');
$('.analyst input').val('');
None of this works. The value was populated on a previous submission. I just want to remove the selection for the next user task.
What is the correct syntax?