Setting value of hidden field on focus of other fields

Setting value of hidden field on focus of other fields


My goal is to set the value of a hidden field with an element id.
Every time one of these elements gets focus, I want the function to
assign the id value. The elements should be any input control (text,
checkbox, listbox, whatever), EXCEPT buttons (button or submit should
not fire this event):
So:
$(All form controls except buttons).focus(function(){
$("#hidden-field-id").val($(the specific control that caused this
function to fire).attr("id"));
});
How do I perform those selections?
Related question: does jquery parse the css itself? In other words,
can I use css selectors in any browser, even if the browser doesn't
support that particular css selector? For example, FF supports
selection based on attributes, but IE does not. Can I use jquery to
select elements with certain attribute values, even if I'm in IE?
Thanks!