I would like to return objects from this function like,
function sampleCode(){
    new somewhere.api({
        var fullAddr = '';
        (adding some address using api)
        (it reutrns json data)
    })open();
}
<input type="text" id="x" placeholder="someone's address">
<input type="button" onclick="sampleCode()" value="popupFind">
<input type="text" id="x" placeholder="someone's address2">
<input type="button" onclick="sampleCode()" value="popupFind">
I'm using API for get address, to input values. might can use getelementbyid and make fucntion differ each times, but how if there are many inputs?
how do I returning objects and use seperately without duplicate?
Thx.