Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. function getCitiesFromState(estado) {
  2.  
  3. document.querySelector('select[name=cities]').value="";
  4.  
  5. $.ajax({
  6. url: ROOT + LANG + "/facebook/getCitiesFromState",
  7. dataType: "html",
  8. type: 'POST',
  9. data: {
  10. estado: estado
  11. },
  12. success: function (html) {
  13. $("#cidadesSelect").html(html);
  14. }
  15.  
  16. });
  17.  
  18. }
  19. function getCitiesFromState(estado) {
  20.  
  21. document.querySelector('select[name=cities]').value="";
  22.  
  23. $.ajax({
  24. url: ROOT + LANG + "/facebook/getCitiesFromState",
  25. dataType: "html",
  26. type: 'POST',
  27. data: {
  28. estado: estado
  29. },
  30. success: function (html) {
  31. $("#cidadesSelect").html(html);
  32. }
  33.  
  34. });
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement