Created
May 29, 2015 21:59
-
-
Save niko-afv/ca1145f559d131e908ce to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| jQuery(".comuna_drop select").on("change", function(){ | |
| var data= { | |
| comuna_id : jQuery(this).val(), | |
| action: 'load_tarifa' | |
| }; | |
| jQuery.ajax({ | |
| type: 'POST', | |
| url: ajaxurl, | |
| data: data, | |
| success: function(resp){ | |
| resp = JSON.parse(resp); | |
| console.log(resp); | |
| //jQuery(".comuna_drop select").html(resp.data); | |
| } | |
| }) | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment