Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. $(".alc-event-results-table > tbody > tr").each(function(i, data) {
  2. var row = $(this);
  3. console.log(row[0].childElementCount);
  4. if (i<10 & row[0].childElementCount > 1) {
  5. var profUrl = row[0].children[4].children[0].href;
  6. console.log(profUrl);
  7. var urlRegex =/.(/profile/.)/g;
  8. var relativeUrl = urlRegex.exec(profUrl)[1];
  9. console.log(relativeUrl);
  10. }
  11. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement