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

246
Views
How to insert a value of id in a querySelector?

I have this code in html:

<div class="bet_balance">
    <span>Balance:
        <strong><b id="balance_r" style="">44</b> <b class="balance_type"></b></strong>
    </span>
    <i id="balance_update"></i>
</div>

And this code in JS:

document.querySelector('#message_text').value = '/send 1327877 **#balance_r**';

How i can take value of id(balance_r),and to put them in this querySelector after value '/send 1327877'?

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

0

document.querySelector('#message_text').value = '/send 1327877 ' + document.getElementById('balance_r').innerText;
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!