Selenium: how to remove selected attribute
<p>I have this <code>WebElement</code>:</p>

<pre><code>&lt;select id="month"&gt;
&lt;option value="empty"&gt;Select&lt;/option&gt;
&lt;option value="1"&gt;Jan&lt;/option&gt;
&lt;option value="2"&gt;Feb&lt;/option&gt;
&lt;option value="3"&gt;Mar&lt;/option&gt;
&lt;option value="4"&gt;Apr&lt;/option&gt;
&lt;option value="5"&gt;May&lt;/option&gt;
&lt;option value="6"&gt;Jun&lt;/option&gt;
&lt;option selected="" value="7"&gt;Jul&lt;/option&gt;
&lt;option value="8"&gt;Aug&lt;/option&gt;
&lt;option value="9"&gt;Sep&lt;/option&gt;
&lt;option value="10"&gt;Oct&lt;/option&gt;
&lt;option value="11"&gt;Nov&lt;/option&gt;
&lt;option value="12"&gt;Dec&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>And I want to remove the selected <code>attribute</code> from <code>Jul</code> and put this attribute under different <code>Month</code>.
This is what I have tried to remove the <code>Attribute</code>:</p>

<pre><code>(JavascriptExecutor) driver).executeScript("arguments[0].setAttribute('selected', '')", myElement)
</code></pre>