Targeting specific widget (or other displayed item) with jQuery

Topics: Troubleshooting, Writing modules, Writing themes
Mar 25, 2011 at 11:27 AM


I've recently gone into some problems when trying to target a specific content item with jQuery. I guess all displayed items, widgets especially, should be marked with some unique Id attribute (or class), derived from its ContentItem Id property (eg. widget-23).

I was trying to allow placing menus in separate widgets and scripting them separately, but without luck as there's no such fine-grained selector available atm...


Mar 26, 2011 at 12:26 AM

I agree although exposing ids in UI is not necessarily a good idea, but some way of targeting a specific item through CSS sounds good in principle. Can you file a bug to track the suggestion?

Mar 26, 2011 at 12:28 AM

Sure, I'll do that in couple of minutes.