/ Published in: jQuery
                    
                                        
One must escape "special characters" in id names using two backslashes.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
// incorrect
$('#my.id.name').val();
// correct
$('#my\\.id\\.name').val();
Comments
 Subscribe to comments
                    Subscribe to comments
                
                