use jquery to close many div s

Poettystafpep

New Member
I have the following div s :\[quote\] manufacturer[1], manufacturer[2], manufacturer[3], ... etc ...\[/quote\]I tried to create a javascritp for loop that close many div , but after a little search I noticed that its impossible.Close = Hide (display:none)So i need help with writing a jquery simple code to do that:\[code\] function hideAllManufacturers(manufacturersID){ var manufacturer = [1,2,3,]; $.each(manufacturer, function(index, val) { $('.manufacturer['+val+']').hide(); });}\[/code\]it does work - but the next of the code after it doesn't been showed. so its probably a problem in what i wrote..Is it bad that the end i have a comma ?need your help!
 
Back
Top