JavaScriptCannot read property ‘replace’ of undefined in jQuery Most of the time, it’s just trying to use a jQuery selector that hadn’t selected anything. Standard