Another day... another unique issue. The title of the post pretty much summarizes the new issue. Working with someone else's code, you don't have control over naming conventions of CSS classes, and I just happened to be using code that has dots in the CSS class names. I know what you are thinking. Isn't that illegal? Well, apparenltly, you can do it, but I wouldn't. So, I will say this is how to work with it if you are using someone else's code because you would never code dots in your CSS class names.
So, here is the jQuery code to select CSS class names with dots. You need to escape the dot with two backslashes. I won't reveal the source of the "unconventional" CSS code, but you may be able to tell from this example.
// Hide fields on Checkout Name and Address form
$(".name\\.Country").hide();
$(".name\\.ShippingCountry").hide();
read more