There is a select2 dropdown with these values
{
  "id": 9050020,
  "text": "Selected Folders",
  "keyword": "S"
}, {
  "id": 9050021,
  "text": "All Folders",
  "keyword": "A"
}
When I get the backend response for the Select2 value it comes as 'A'. then how do I set the select filed as 'All Folders'?
This is the select filled:
<select data-width="100%" data-placeholder="Select an option" id="foldertype" name="foldertype">
 
     
    