How can I change the input field background color based on the value entered?

I guess I just need the style name to enter on the dynamic attributes. Is there a reference that has the different style name?

Hi @cynthiacorley,

This should help you or provide you with some guidance.

Actually it works if I just want to make a row, column, or cell background change colors based on the input selected. However, I can’t get it to change the background color of the select input field itself. Is there another class toggle name I should use other than table-sucess, table-warning, or table-danger?

You should just be able to use bg-success, bg-warning, bg-danger etc. on the input.

That works! Thanks!

1 Like