Using buttons to increase/decrease the value

Hi,

What is the most straightforward way to add -/+ buttons around or next to the number field?

I already added the buttons, wrote the OnClick functions that increase and decrease the value by one when clicked. However, with this solution the calculation isn’t working properly. I guess my solution isn’t the correct one. Do you have some ready solution for this kind of need?

And thank you for the awesome plugin!

 

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.

Your Advertisement Here