I am using jQuery to locate an element in my web page, but it always throws an error at this line:
var test = $('table[id$=' + array[i].Id + ']');
The error is Object doesn't support this property or method.
array[i].Id is "12312 Tab1"
When I remove the space in the Id, there is no error thrown. My jQuery knowledge is very basic, so I am not quite sure why this error would occur?
Any ideas please?