Created
September 25, 2011 01:02
-
-
Save huoxito/1240078 to your computer and use it in GitHub Desktop.
jquerys
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#model').change(function(){ | |
var model = $('#marca option:selected').val(); | |
var marca = $('#marca option:selected').val(); | |
$.ajax({ | |
url: 'http://quatrorodas.abril.com.br/compre-seu-carro/static/javascripts/price-table-years', | |
data: { make: marca, model: model, domain: "carro" }, | |
success: function(data){ | |
// monta os options com a var data | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment