Solved

Convert list

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

DOM Attributes and Properties treatment with jQuery 1.6 by Ivo Stoykov jQuery (http://jquery.com/) 1.6 introduces .prop() (http://api.jquery.com/prop/) and .removeProp() (http://api.jquery.com/removeProp/) methods which allow modifying or removi…
Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
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…

827 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