I have absolutely no idea why this is not working. Makes no sense to me.
This returns a \"syntax error: parse error\":
if ($(this).attr(\"id\") === \'se
My guess is that === does not exist. == is for testing equality
so if ($(this).attr("id") === 'search' || opening == true) return false; should be if ($(this).attr("id") == 'search' || opening == true) return false;
if ($(this).attr("id") === 'search' || opening == true) return false;
if ($(this).attr("id") == 'search' || opening == true) return false;