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