How to adjust slider value from another field?

[ad_1]

Hi and thank you for such a great plugin!

I made a simple form with 2 fields:
– fieldname1 (slider)
– fieldname2 (number)

The idea is that a user uses slider to tell how much electricity he/she uses per month and then the fieldname2 shows the recommended power for solar panel installation. This part works.

The user is also able to type a number into fieldname2 by hand, if he/she knows the needed power. How do I make the slider move if the user enters the value manually? Right now the slider keeps at the last dragged position and does not update.

Best wishes,
Karolis

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer