Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.getJSON("../api/routes/", function(result) {
- var options = $("#options");
- //don't forget error handling!
- $.each(result, function(item) {
- options2.append($("<option />").val(this.name).text(this.name));
- });
- });
- $.getJSON("../api/routes/", function (result) {
- $("#options").on("change", function () {
- var heatFrameView = $("#heatFrame");
- heatFrameView.append($('<iframe src="'+this.game.heat_link+'">''</iframe>'));
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement