I created on my page a select multiple
and I need to get its values in PHP as vector, so I added []
to the end of the name. Example:
<select id="selecionados[]" name="selecionados[]" size="20" multiple ">
<option value="A">A</option>
<option value="B">B</option>
</select>
So long, however, I need to get the selecionados[]
element with Jquery before submitting the form.
However, neither with $('#selecionados')
nor $('#selecionados[]')
works.
How can I get this element by jQuery?