Re: [jQuery] Converting a javascript to jQuery

2010-01-13 Thread Nathan Klatt
This is totally untested but I expect it should look something like the below. Nathan function initShowHideDivs() { $("div.breakbg").each(function(breakbgIndex) { this .click(showHideContent) .attr("id", "ssdm"+breakbgIndex) // .className=="ssdhead" .next("div")

[jQuery] Converting a javascript to jQuery

2010-01-13 Thread modestmj
Hello everyone...I'm really new to jQuery..I have an urgent requirement to convert this javascript to jQuery...So please...try to help me with this.. function initShowHideDivs() { var divs = document.getElementsByTagName('DIV'); var divCounter = 1; for(var no=0;nohttp://o