So, I just used a standard ajax call with a response object instead of using jquery. This way, in my event function, I could do:
<div> <input> <calling button>: request.onreadystatechange = function() {replaceInputElement(this);}; </div> so that replaceInputElement gets a reference to the calling button, which I can use to navigate to the correct Input Element.