Created
July 6, 2018 12:12
-
-
Save robozavri/ef218866fead265b37d73cdf5bef4651 to your computer and use it in GitHub Desktop.
js parse ajax returned html
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
complete : function(data){ | |
var html = $.parseHTML( data ); | |
var container = $(".accomodation", html); | |
$(".accomodation", html).each(function(index,item){ | |
AllCurrentAccomodations.push($(item).attr('data-id')); | |
console.log($(item)); | |
console.log($(item).attr('data-id')); | |
console.log(item); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment