I have been knocking my head to the walls today trying to get the field result from jQuery Geocomplete to display street_address but it looks the plugin is not rendering it as a data-geo="" onto my form field or anything else!.
Bellow on my HTML i have the fields to pick up the street name and another for number i need the result from both to go to #BillingAddress. I believe some JavaScript may do the work but I am not an expert on it.
<div class="item">
<input id="autocomplete" placeholder="Look up your address" type="text"></input>
</div>
<div class="item" style="display: none;">
<input class="cat_textbox" id="houseNo" data-geo="street_number" type="text" placeholder="House Number" maxlength="50"/>
</div>
<div class="item" style="display: none;">
<input class="cat_textbox" id="street" data-geo="route" type="text" placeholder="street" maxlength="50"/>
</div>
<div class="item">
<input class="cat_textbox" id="BillingAddress" data-geo="street_address" type="text" placeholder="Billing Address" maxlength="50" name="BillingAddress"/>
</div>
So far I have tried using some jquery to trnasfer the fields values to the #BillingAddress input but it only copies if the other inputs are keyed or pressed, clicked, but I want them to keep hidden to improve visibility and make the form less complex for some people, so when the Geo results is chosen they populate into this field together.
$('#houseNo').on('propertychange change click keyup input paste',function(){
$('#BillingAddress').val(this.value+' '+$('#street').val());
});
$('#street').on('propertychange change click keyup input paste', function(){
$('#BillingAddress').val($('#houseNo').val()+' '+this.value);
});
Much appreciated the help and i think this is also a good query for some others out there.