Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

114
Views
audio source in html

I want to add song to my music player when click on "add song" but when we enter a urlf audio from internet in song src field it doesn't work. Any solution?? I am sharing my JavaScript code

e.preventDefault()
var music = {
    name: document.getElementById("nam").value ,
    source:document.getElementById("sorc").value,
    cover:document.getElementById("img_src").value
}

document.querySelector('form').reset();
songs.push(music)
console.log(songs)
coverImg.style.display= "block";
document.getElementById("nam").style.display="none";
document.getElementById("btn").style.display="none";
document.getElementById("sorc").style.display="none";
document.getElementById("img_src").style.display="none";
alert("√Successfully Added \\n √Click on File Button to Add Again");
document.getElementById('btn').addEventListener('click',addSongs)
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!