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") === 'search' || opening = true) return false;
For good measure, I also tried the following, which yielded the same result:
if (1 = 1 && 2 = 2) { return false; }
There are three different operators at play:
=: assignment==: equality===: strict equality=actually modifies a variable, so you shouldn't use it insideifstatements. That is, you should use... || opening == true)instead of... || opening = true).