?
Solved

Convert list

Posted on 2013-01-11
2
Medium Priority
?
186 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
soupBoy earned 2000 total points
ID: 38769434
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
ID: 38769557
OFFS!!!!!!!

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

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
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 the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…
Suggested Courses
Course of the Month9 days, 16 hours left to enroll

762 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