Jquery selector not working when element contains dot in tag name December 1, 2023 by Tarik I think you should escape the dot with a double-backslash: $("#Department\\.DeptName") See here.