문제

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?

도움이 되었습니까?

해결책

Your last line in the CSS should be:

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

Working fiddle:

http://jsfiddle.net/U8XsX/

다른 팁

Your CSS is wrong.

Change this:

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

To this:

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

DEMO

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top