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

121
Views
running DOM tags

What I am trying to do is when the script is called I want it to call another id within the Dom and display the image of that particular id. The following script calls on the selected Value.

<script>      
  document.querySelector('select').onchange = function() {   
    document.querySelector('#ree').innerHTML = this.value;
  }
</script>
<div id="ree"></div>

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

What you can do is use a img tag inside your #ree div and then

<script>
        
     document.querySelector('select').onchange = function() {
     
     document.querySelector('#ree img').src = this.value;
}
</script>

the div

<div id="ree">
   <img>
</div>
about 4 years ago · Juan Pablo Isaza Report
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!