[jQuery] Converting a javascript to jQuery

2010-01-13 Thread modestmj
='/yatra_blue-theme/images/hotel/ssdarrowdown.gif'; } } -- View this message in context: http://old.nabble.com/Converting-a-javascript-to-jQuery-tp27142142s27240p27142142.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.

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)