I get the following error message:
With your argument, an error was thrown! Type error: $ ("# Contest-Navigation ULL") is zero However, in the console, if I type:
jQuery ( "# Contest-Navigation UL Lee"); I am getting a tap message (The only thing I see is that "You have used the same selector more than once" which is an unreserved list because it Understandable). / P> I think this is really because I am using prototype (well, person in front of me) with jQuery, but I'm not sure how to solve it. I know that when I link to the prototype library, my jQuery code works correctly ...
HTML:
& lt; Div id = "contest-navigation" & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A & gt; & Lt; Period & gt; More about & lt; / Span & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A & gt; & Lt; Period & gt; Enter & lt; / Span & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A & gt; & Lt; Period & gt; Rules & lt; / Span & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A & gt; By award & lt; & Lt; Period & gt / span & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A & gt; & Lt; Period & gt; & Lt; / Span & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; This is my complete code (tab-rollover.js):
jQuery (function () {jQuery ('# contest-navigation ul li' ) .hor (function () {jQuery} (this) .addClass ('hover');}, function () {jQuery (this) .removeClass ('hover');}); jQuery ('# contest-navigation ULL Click '(function () {jQuery (' # -bat-subnav ul li '). RemoveClass (' selected '); jQuery (this) .addClass (' selected ');});});
Ensure that your code is inside the block.
Comments
Post a Comment