Using jQuery and CSS

While the previous recipe is delved into the CSS definition already, in order to actually show you some visible changes generated by your custom function, in this section we will be looking at some additional CSS changes we can implement using an external predefined CSS file that overrides the default CSS.

The most basic change, as demonstrated by the previous example, involved changing the border background color. In addition to that we can push a lot of other visual changes on to our forms. For this recipe we can take a look as using CSS to reformat the labels on the form fields that are marked as business required.

Getting ready

For this recipe we can either create a new solution, or use the one we previously created. I ...

Get Microsoft Dynamics CRM 2011 Scripting Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.