html - Problems with JavaScript Dropdown Nav -


i using javascript drop down navigation menu found after googling , i've managed style way want. however, after validating site, errors ul tags (error: element ul not allowed child of element ul in context. (suppressing further errors subtree.)). not error, navigation doesn't work way should. i've tried different variations of ul , li tags, , moved things around, , still cannot work correctly.

<div class="nav"> <ul id="menu" class="menu">     <li><a href="#">one</a>         <ul>      <li class="submenu">         <a href="#">one</a>     <ul>         <li><a href="#">one</a></li>         <li><a href="#">two</a></li>         <li><a href="#">three</a></li>     </ul>             </li>      <li class="submenu">         <li><a href="#">two</a></li>             <ul>                 <li><a href="#">one</a></li>                 <li><a href="#">two</a></li>                 <li><a href="#">three</a></li>             </ul>            </ul>     </li>      <li><a href="#">two</a>         <ul>      <li class="submenu"><a href="#">one</a></li>     <li class="submenu"><li><a href="#">deny</a></li>                 <ul>                     <li class="noborder"><a href="#">one</a></li>                     <li><a href="#">two</a></li>                     <li><a href="#">three</a></li>                 </ul>          </ul>     </li>      <li><a href="#">three</a>         <ul>      <li class="submenu">         <a href="#">one</a>             </li>          </ul>     </li>      <li><a href="#">four</a>         <ul>      <li class="submenu">         <a href="#">one</a>             </li>          </ul>     </li> </ul> 

i not sure problem java script code. mismatch in writing of these html tags may cause these kind of problems. please check opening , closing tags once again , make sure in correct position or not. when gone through html code found mismatch in tags. 1 is- first menu item two written in between 2 li /li tags. first one menu item not in between these li /li tags.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -