JSFiddle - React, Tailwind, and code Playground

by Uriel Zarnihchi

HTML

<script src="//code.jquery.com/jquery-1.12.0.min.js"></script>
<a href="http://example.com">First Link</a>
<a href="http://example1.com">Second Link</a>
<a href="http://example2.com">Third Link</a>

JavaScript

$(function(){
		var myArray = [];
		$('a').each(function(){
			myArray.push($(this).attr('href'))
		});
		console.log(myArray);
	});