javascript - hasClass jQuery isn't working -
I am working on a navigation system where the left and right arrows extend the LIs. & lt; a href = "#" square = "icon-arrow-left active" & gt; & Lt; / A & gt; & Lt; Ul & gt; & Lt; Li class = "contracted" & gt; & Lt; A href = "#" & gt; 1 & lt; / A & gt; & Lt; / li & gt; & Lt; li class = "extended" & gt; & Lt; A href = "#" & gt; 2 & lt; / A & gt; & Lt; / li & gt; & Lt; li class = "active placement" & gt; & Lt; A href = "#" & gt; 3 & lt; / A & gt; & Lt; / li & gt; & Lt; li class = "extended" & gt; & Lt; A href = "#" & gt; 4 & lt; / A & gt; & Lt; / li & gt; & Lt; Li class = "contracted" & gt; & Lt; A href = "#" & gt; 5 & lt; / A & gt; & Lt; / li & gt; & Lt; / Ul & gt; & ...