I tried using the server-side .CssClass, but this isn’t available for me to use.
My div has runat="server" so I can access it, but I just cannot see .CssClass in the drop-down when i hit “.”. Does anyone know how to get past this or any other solution that might work?
Ok, my bad. I just found out that this does not work for HTML controls, only for asp controls
If you are wanting to read the class name, you will need to use the code:
If you are wanting to replace a specific class you will need to use the code: