accessing form inputs when part of an array

accessing form inputs when part of an array

hi there
im pretty new to jQuery, but familiar with JS in general.

im trying to get a dom element by id to change the read only attribute.
using jQuery i'm doing the following:
var field = $('#name[index][index]').

but when alerting the field value, i get [object Object] and not an inputObject as i would expect.

i can use the normal getElementById and it works as I would expect. Is this a problem with jQuery?

Thanks in adavanced.
Ash