Solved

Convert list

Posted on 2013-01-11
2
185 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 500 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

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

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

Hi all! Recently there was EE question and the person wanted to have a multi-column textbox <div> selection, so as a first step to answer I provided a link but that was not complete with JavaScript selection, but had a good style sheet. So as a ques…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn how to dynamically set the form action using jQuery.
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)

690 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