Jquery droppables:  multiple accepts

JayZeeBoy
JayZeeBoy used Ask the Experts™
on
Hello,

In the follow code, I specify what id to accept.  Is there a way to specify multiple elements in the jquery accept option?

$("#droppable").droppable({
			accept: '#draggable',
			activeClass: 'ui-state-hover',
			hoverClass: 'ui-state-active',
			});

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
Yah actually you can pass in any selector you want, so it could be multiple IDs, or it could be a class selector to accept all elements with a certain class.  It could even be a function to provide a custom filter.  Check out http://www.jqueryui.com/demos/droppable/, under options tab, accept.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial