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

129
Views
how to change the javascript document in HTML

I want to change my js document in HTML. the HTML code like this:

<div id="content_FoodSales_bar" class="p_chart>
    <script id="box1" type="text/javascript" src="../scripts/FoodSales_bar_mysql.js"></script>;
</div>

and I want to change the src attribute in script. the javascript document to achieve that like this:

$('#box1').attr("src",'../scripts/FoodSales_bar2_mysql.js');

and this:

document.getElementById('box1').src='../scripts/FoodSales_bar2_mysql.js';

but both of them cannot work. how can I do?

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!