Fixed a Bug when "[" or "]" is in the ID of the <select>

With "[" or "]" in the ID of the select it could not be opened.
There may be a better way to fix this, but this works for me.