[jQuery] more jQuerish-way instead of each -> accesing "this" or "self" or "currently mangeld object"
Hello!
I need to add autocomplete-functionality to some of my input fields.
I can select them via $j("input.acmplajax") -> done
The URL for requesting the autocomplete-Filler needs to be different
for every input, so I want to refer to the DOM-ID of that input-
element, the following works:
$j("input.acmplajax").each(
function(ind, obj)
{$j(obj).autocomplete("/autocont/"+obj.id)
}
)
But my stomach tells me: there must be some way to write this
$j("input.acmplajax").autocomplete("/autocont/"+<how_do_I_access the
current element of the jQuery collection>.id)
so, what is the correct value for "<how_do_I_access the current
element of the jQuery collection>" ???
Harald