Given the following classes and controller action method:
public School
{
public Int32 ID { get; set; }
publig String Name { get; set; }
public Address
Using two Backslashes it´s ok, it´s work. But if you are using a dynamic name, I mean, a variable name, you will need to replace characters.
If you don´t wan´t to change your variables names you can do this:
var variable="namewith.andother";
var jqueryObj = $(document.getElementById(variable));
and than you have your jquery object.
The Release Candidate of ASP.NET MVC that was just released fixed this issue, it now replaces the dots with underscores for the ID attribute.
<%= Html.TextBox("Person.FirstName") %>
Renders to
<input type="text" name="Person.FirstName" id="Person_FirstName" />
For more information view the release notes, starting on page 14.