Guest User

Untitled

a guest
Dec 7th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. $(function () {
  2. $.ajax({
  3. type:'post',
  4. dataType: 'json',
  5. url: 'atestado.asp',
  6. success: function(data_est){
  7. $("#one").append($('<option selected></option>').val('0').html('Brasil'));
  8. for(var i=0;data_est.length>i;i++){
  9. $("#one").append($('<option></option>').val(data_est[i].idestado).html(data_est[i].estado));
  10. }
  11. $("#two").combobox();
  12. $("#one").val('0').combobox("refresh");
  13. updateTwo($("#one").val());
  14. }
  15. });
  16.  
  17. $("#one").combobox({
  18. select: function (event, ui) {
  19. updateTwo($(this).val());
  20. }
  21. });
  22. });
Add Comment
Please, Sign In to add comment