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

182
Views
Pass a value from one element (text-field) to another (form imput) on load

I have a CMS page (real estate website built in Webflow) that contains a price I need to pass to a form input field (which is part of a mortgage calculator I somehow managed to put together).

Tried it with fixed values with the code below:

<script>
$(document).ready(function() {    
$("#fname").val("val1"); 
$("#lname").val("val2"); 
$("#title").val("val3");
});
</script>

It works like a charm but I need to use the dynamic value from a CMS field. What is the best approach to do this? And also for the second input field, I need to pass the same value but multiplied with 0.8.

I would be keen to see some recommendations of learning resources about this topic too.

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!