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

91
Views
Auto adjust numbers in jquery on click

I need jquery solution which needs to be auto adjusted with corresponding data attribute on clicking button.

<input type="number"><button>Auto adjust</button> the value entered!
<br>
<br>
<br>
<br>

<tr>
<td>8</td>
<td><input type="number"></td>
</tr>
<br>
The data should be ajusted with coressponding table value when given higher values.

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

0

I add two id attribute to inputs for show what I meaning better:

<input type="number" id="input"><button>Auto adjust</button> the value entered!
<br>
<br>
<br>
<br>

<tr>
<td>8</td>
<td><input type="number" id="tableInput"></td>
</tr>
<br>

use form this below script:

$('button').on('click' , () => {
    let inputVal = $("#input").val();
    $("#tableInput").val(inputVal);
})
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!