title: Selecting multiple items from a list with JS or jQuery
body: <p>I would like to figure out how to select multiple items from a list of options. Currently, I have a jQuery I use to select items that contain a certain number. For instance, if you look at the screenshot below, I have selected only those options with the numbers <strong>'03'</strong>.</p>
  
  <p>The script I use to do this is:</p>
  
  <pre><code>$('#formfields option[title*="(##)"]').attr('selected', 'selected');
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/KtOn4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KtOn4.png" alt="selectedItems"></a></p>
  
  <p>The HTML SELECT and OPTION looks as follows:</p>
  
  <pre><code>&lt;select id="formfields" name="formfields" divclass="" optionsonly="false" size="10" fromselect="false" class="mcdropDown"
  title="Form Fields" multiple="" required="" aria-required="true"&gt;
  &lt;option value="2O5W6XNX5ZCSDLW6GK" title="Completion Documentation - mastercontrol.links.Completion (01)"&gt;Completion Documentation - mastercontrol.links.Completion (01)&lt;/option&gt;
  </code></pre>
  
  <p>Clearly, there are TONS more options that that.</p>
  
  <p>Now, I have a similar list, but the HTML SELECTS and OPTIONS are a bit different. Here is a screenshot of the list I am trying to work with.</p>
  
  <p><a href="https://i.stack.imgur.com/oeML5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oeML5.png" alt="itemsToMove"></a></p>
  
  <p>I'd like to be able to do something similar as above. There are hundreds of options in some of these lists and I only need to move certain items over to the 'currently selected' window. For instance, can I write a jQuery or JS to select only those items that say InfoCard Employee, InfoCard File Name, InfoCard Owner... and so on?</p>
  
  <p>The issue is that the HTML SELECTS and OPTIONS aren't being very generous in the accessibility of the elements.</p>
  
  <p>Here is the HTML I have to work with at the moment.</p>
  
  <pre><code>&lt;select name="parentList" size="8" multiple="" style="height:200px;font-size:11px;" ondblclick="MoveAcross(document.OrderForm['parentList'],document.OrderForm['updownlist']);"&gt;
  &lt;option value="O.247"&gt; InfoCard Dataset- InfoCard Author&lt;/option&gt;
  </code></pre>