Curtis Timson

Front End & .NET Developer


October 2012

Creating a new rule for a CSS class in jQuery

In jQuery, to add a new style to all elements which have a particular CSS class, we can simply call a function like the following: <div class=”foobar”>Lorem Ipsum</div> <div class=”foobar”>Dolor sit amet</div> function SetFooBarRed(){ $(“.foobar”).css(“background-color”, “red”); } This will add… Continue Reading →

How to prevent self-closing elements in XSLT

If you are to put an element into XSLT without any child elements, the element will automatically close itself. Therefore, if you have the following markup: <div class=”clear”></div> XSLT will automatically render this as: <div class=”clear” /> This is fine… Continue Reading →

© 2017 Curtis Timson — Powered by WordPress

Theme by Anders NorenUp ↑