Question: Which webservice should i use to get the zipcode from latitude and longitude?
I am using Geonames API but it doesnot meet the requirement. I want to use anyother webservices which provides the zipcode/postalcode.

```
        Geocoder geocoder;
        List<Address> addresses;
        geocoder = new Geocoder(this, Locale.getDefault());
        addresses = geocoder.getFromLocation(_mylat, _mylong, 1);
        String address = addresses.get(0).getAddressLine(0);
        String city = addresses.get(0).getAddressLine(1);
        String country = addresses.get(0).getAddressLine(2);
                        String zipcode = addresses.get(0).getPostalCode();

```

Even I tried this code but i didnt get the result. I got the Exception as IndexOutOfBoundException.

Answer: 
If per your comments elsewhere you cannot split the two elements apart for text purposes, then alternatively you should ensure that both existing elements share a common parent (e.g. a `<div>`) and then replace the *contents* of that parent:

```
<div id="parent">
  <textarea>Old</textarea>
  <button>Old</button>
</div>

$('#parent').empty().append(newContent);

```

Alternatively if you cannot change the downloaded HTML, then within the event handler if you can assume that there are no other matching elements between the "replace" div and the original content:

```
$(this).prevAll('button').first().remove();
$(this).prevAll('textarea').first().remove();
$(this).before(newContent);

```
You should separate the two out, to avoid trying to replace both in the same statement. 

```
$('textarea').replaceWith('<textarea>New</textarea>');
$('button').replaceWith('<button>Old2</button>');  

```