Had an issue that I could never find the correct solution online for so thought I would post one up in case it would ever help anyone.
So basically I wanted to add the same autocomplete function to multiple cloned elements, but as anyone that has tried this before knows, there are tonnes of issues meaning it never works without complications. I've came up with a few solutions, (new ids, add to each new id) but by far my favorite is shown below:
$("[name='nameofelement']")
.focus(function(){
//Don't really need this if statement but it may improve performance