[jQuery] Attr(name)

[jQuery] Attr(name)


I have created a form that has multiple input tags (6 to 8) and I am
using the "alt" attribute of the of the input tag to to retrieve
information with this method "var current = $("input").attr("alt");".
While this works on the first index of the input tag it does not help
if the input fields are chosen at random. I have also tried using
selectors and filters, but have been unable to determine how to
retrieve the Attr("alt") on the element that has focus.
Any help is appreciated.
Bob