How do you reference an element in jquery BY NAME that has [] in it.
<select name="values[]" multiple="true"> <option value="1">1</option> <option value="2">2</option> <option value="2">2</option> </select> <script type="text/javascript"> $('[name=values[]]'); </script>
this should capture the element, but it wonโt work, I believe that [] in the title will spoil it, avoiding it does not seem to work either. I cannot understand what I am doing wrong.
user384030
source share