Add color to specific form number fields

By: jason LeRoy | Asked: 01/26/2023
ForumsCategory: How-toAdd color to specific form number fields
jason LeRoy asked 2 years ago
Hi, Is it possible to add a background color to specfic number fields based on there value. (IF number field is > 0 & less than 5, then field background color is Green).   I appreciate any assistance.   Thank you, Jason
1 Answers
Victor Font answered 2 years ago
This is done with jQuery and CSS. Create a custom jQuery script to monitor the field value on its change event, then apply the appropriate CSS class when the criteria is met.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right