Has anyone been able to identify how to add css to required fields? I couldn’t find a required class or anything. I would like to add more than just the red *. Maybe add dashed border or really light red background color. If you have used a function or class let me know. I’ll have no problems with the CSS itself. Just how to identify which are the contorls that are required.
This might help? I use jQuery to add an “$” in front of currency fields in my NewForm and EditForm. When it stopped working one day it took me a bit to figure out that SharePoint adds “Required Field” to the input element title property.
$("input[title='2014 Capital Budget Required Field']").before("$ ");
I will add a class to required fields when I fix a bug in setting fields not visible in the current tab to required (this produces multiple red stars).