Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function () {
- $.ajax({
- type:'post',
- dataType: 'json',
- url: 'atestado.asp',
- success: function(data_est){
- $("#one").append($('<option selected></option>').val('0').html('Brasil'));
- for(var i=0;data_est.length>i;i++){
- $("#one").append($('<option></option>').val(data_est[i].idestado).html(data_est[i].estado));
- }
- $("#two").combobox();
- $("#one").val('0').combobox("refresh");
- updateTwo($("#one").val());
- }
- });
- $("#one").combobox({
- select: function (event, ui) {
- updateTwo($(this).val());
- }
- });
- });
Add Comment
Please, Sign In to add comment