Handling colon in element ID with jQuery November 20, 2022 by Tarik You need to escape the colon using two back-slashes: $('#test\\:abc')