Reputation: 22964
The element:
<input type='text' id='Customer.name' value='' />
The invalid jQuery selector:
$('#Customer.name')
Does anyone know what the selector should be for this element?
Upvotes: 17
Views: 12028
Reputation: 262939
You can escape the period character with two backslashes:
$('#Customer\\.name')
Upvotes: 19
Reputation: 77966
$('input[id="Customer.name"]')
Example: http://jsfiddle.net/AlienWebguy/HFpEE/
Upvotes: 19