I have the following code in which I select all matching elements starting with the same name, with the exception of one that I do not want to include in the group.
var myInputBoxes= $('input[id ^= "SubjectText"]').not('#SubjectTextNew'); for (i = 0 ; i < myInputBoxes.length; i++){ var SubjectId = myInputBoxes[i].id.replace('SubjectText', ''); var Subject = myInputBoxes[i].val(); }
This gives me the following error in firefox
TypeError: myInputBoxes [i] .val is not a function
Why doesn't it work in val function?
source share