[jQuery] Problem with the fieldselector [@name=xyz]
Hi, I need help with the following code.
This one alerts 'undefined':
var field = 'test';
alert(jQuery("[@name='" + field + "']").attr('id'));
and this one gives me the correct id:
alert(jQuery("[@name='test']").attr('id'));
So why the first one doesn't work?
Thanks for your help.