I'm trying to validate a bitcoin wallet address. I want it to check against the blockexplorer to see if it's a "valid" address or not. I have written this code but its not working:
var address = $('#wallet').val();
alert('xxx == '+data);
Can someone tell me how to do it?