Replace this chunk:
data: {
nameApplianceSearchString: request.term,
nameApplianceTypeString: $(this).attr("name"),
maxRows: 25,
style: "full",
},
with this:
data: {
nameApplianceSearchString: request.term,
nameApplianceTypeString: $(this.element).attr("name"),
maxRows: 25,
style: "full"
},
Here's a fiddle: http://jsfiddle.net/jeBUV/
Note that I had to modify it slightly to get an ajax call to work in jsfiddle. See the jsfiddle docs for clarification on making ajax requests in fiddle: http://doc.jsfiddle.net/use/echo.html