I have this select with multiple select
<tr>
<td width="10%" class="label_right">Autorização Prévia: </td>
<td class="label_left">
<select id="ddl_autorizacaoprevia" multiple>
<option value="0">TODAS AS AUTORIZAÇÕES</option>
<option value="T">TÉCNICA / ADMINISTRATIVA</option>
<option value="A">SISTÊMICA</option>
<option value="N">NÃO PRECISA</option>
</select>
</td>
</tr>
What I want is that when I select " ALL AUTHORIZATIONS ", all others should be selected and when I click on any other, all selected should be cleared and only the selected should be marked (selected). I really do not know how to do this. I'm searching the internet, but so far I have not found anything.