Gelin Luo
Gelin Luo

Reputation: 14393

what's wrong with my fiddle using jqueryui selectable

hi I have a very simple fiddle to understand how to use jqueryui selectable:

http://jsfiddle.net/hvqz7/.

However it doesn't look work. Anyone know what's wrong with it?

Upvotes: 0

Views: 250

Answers (3)

Nope
Nope

Reputation: 22339

Your CSS is wrong.

Change this:

#selectable .ui-selected { background: #F39814; color: white; }

To this:

#container .ui-selected { background: #F39814; color: white; }

DEMO

Upvotes: 2

Cameron Chapman
Cameron Chapman

Reputation: 796

Your last line in the CSS should be:

#container .ui-selected { background: #F39814; color: white; }

Working fiddle:

http://jsfiddle.net/U8XsX/

Upvotes: 3

Sushanth --
Sushanth --

Reputation: 55750

Actually the Mistake in there was because of this class you added

#selected .ui-selected { background: #F39814; color: white; }​

It should be #container .ui-selected { background: #F39814; color: white; }​ instead

UPDATED FIDDLE

Upvotes: 0

Related Questions