I've got some autocomplete:
$(".some_class").autocomplete({ source: function(request,response){ //get input values and store into myArray var element= $(this); //not working .some_class is connected to input fields, which is what I actually want to have. I thought $(this) would return the the input field. Instead I'm getting this:
Object { element={...}, options={...}, menu={...}, mehr...}
How can I access the element? When I used it like that before, I had no problems accessing the element.
EDIT:
Actually I want the value of the name-attribute of the input-field. Do you have an Idea how to manage that?
$(this)[0]. However, you may have a different problem depending on what the value ofthisis in your context.