jQuery toggle() with dynamic div ID's
问题 I need some help with some dynamic jQuery - if thats what it would be called. Basically, I have a number of DIVs, each with the same name, except an increasing number is added on the end - for example: <div id="category-1"></div> <div id="category-2"></div> <div id="category-3"></div> ....so and and so forth. On the main menu, I want to create buttons that toggle each item, so there would be a button to toggle category-1, category-2, and so forth. The ability to add/remove categories is going