Calculate interdependent fields | WordPress.org

[ad_1]

I am making an online calculator. This requires the user to input some common inputs say fieldname1. In addition to this, the user should either provide fieldname 2 or fieldname 3. With fieldname 1 and fieldname 2, it is possible to compute fieldname 3. Similarly, With fieldname 1 and fieldname 3, it is possible to compute fieldname 2. I wish to provide two buttons, depending on which, form fields will be evaluated. For example, the “compute fieldname 3” button will clear fieldname 3 and compute it using fieldname 1 and fieldname 2.

I need some pointers on how to write the required onclick events, and HTML content to be added, if any.

Thanks!

 

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