Solved

Convert list

Posted on 2013-01-11
2
180 Views
Last Modified: 2013-01-12
Ive been trying to figure out a way to convert a list into some divs, the final idea is to make my own Menu plugin, mainly out of interest.

I did open a question which worked well Q_27988943 however after changing the code so I could work with it, it seems to have broken, and I cannot figure out why.

I have restarted a few times, and as soon as I try anything it breaks.

I've put my code in a simplified form as a jsfiddle http://jsfiddle.net/eptCx/

My main issue is, is when I run it through a debugger, it doesn't even try and do the first each statement at all, but does run the alert fine, but shows it still as a list.

Any ideas what Im doing wrong?

Thanks in advance
0
Comment
Question by:tonelm54
2 Comments
 
LVL 8

Accepted Solution

by:
soupBoy earned 500 total points
Comment Utility
Your issue is in your UL, typed this:
<ul style="testMenu">

But I bet you meant to type this
<ul class="testMenu">


Your JSFiddle runs correctly once you change it from style to class...

- Chris
0
 

Author Comment

by:tonelm54
Comment Utility
OFFS!!!!!!!

I spend ages trying to figure this out :-(
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I have answered several questions lately that were solved utilizing the power of jQuery's AJAX functions, so I thought I would write an article demonstrating the ease of use. Why should I use jQuery as opposed to regular JavaScript? Now I know…
Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now