I have a form with a whole bunch of text fields on it, I would like to detect when any of those fields have changed so that I can some css properties. Right now I have grey text in the fields explaining what it does, one the user clicks on the field, i want the text to disappear and the color to go back to black. is there any easy way to do this?
TIA :)
JavaScript
Last Comment
Big Monty
8/22/2022 - Mon
Amar Bardoliwala
Hello The_Big_Daddy,
you will need to use onfocus event of textbox as following
Is there any way to make it so I do not have to add classes to all of my text boxes? there a lot of them and they already have classes assigned to them (not the same name) and would require me to rewrite other jQuery code where I'm selecting certain text boxes by class name
Big Monty
ASKER
not the exact solution I added but pointed me in the right direction
you will need to use onfocus event of textbox as following
Open in new window
Hope this will help you.
Thank You.
Amar Bardoliwala