[jQuery] Combining Selectors

2009-04-05 Thread Nic Hubbard
I am confused why the following is returning undefined: alert($(this + " input[type='submit']").attr('id')); This is within the context of a plugin that I built. Removing the this makes it correctly find the input, why I want to narrow the scope.

[jQuery] Combining selectors

2008-10-22 Thread nguyenq
I need help in this compound selector problem. I have the following jQuery statements, which are working: $("[EMAIL PROTECTED]'button']").addClass("button"); $("[EMAIL PROTECTED]'submit']").addClass("button"); $("[EMAIL PROTECTED]'reset']").addClass("button"); I want to combine them