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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -