Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- $('#form').submit(function(){
- var cep = $('#cep').attr('value')
- $.getScript('buscaendereco.php?cep='+cep, function(data){
- $('option').val([resultadoCEP.estado])
- $('#cidade').val(unescape(resultadoCEP.cidade))
- $('#bairro').val(unescape(resultadoCEP.bairro))
- $('#endereco').val(unescape(resultadoCEP.logradouro))
- })
- return false
- })
- })
Add Comment
Please, Sign In to add comment