I'm trying to use JavaScript random function for pass the different value to href attribute
this is my code but it's not the jQuery part is not working:
jQuery:-
var numbers = ["22332233", "44455566", "12322122", "44455566", "12322122", "44455566", "12322122"];
var result = Math.floor(Math.random() * 5);
console.log(result);
console.log(numbers[result]);
$("#phone-tel").attr("href", numbers[result]);
HTML:-
<a id="phone-tel" href="">+353123456789</a>