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.