javascript - Create variable from imported HTML's ID and children using jQuery ajax -
i able html webpage using jquery code:
$(document).ready(function() { baseurl = "http://www.somewebsite.com/"; $.ajax({ url: baseurl, type: "get", datatype: "html", success: function(data) { // create variable here } }); });
i want create variable includes text second anchor in returned html ajax request:
<div id="wrapper"> <ul> <li> <a></a> <a>i want data anchor</a> </li> </ul> </div>
quite frankly, don't know start, unfamiliar jquery. can point me in right direction?
Comments
Post a Comment