I’ve been reading about the Jquery UI selectable plugin, my question is:
Can I limit it to select only up to 4 items in a list ? Or maybe it would be easier to code it without using the selectable plugin ?
Thanks!
EDIT: Thanks for your answers, however I see that I didn’t explain it very well: The user can select (ctrl + click) more than one item in a list by using the Jquery UI selectable plugin. What I want is to limit it so the users can only select up to 4 items (any of them).
JSFIDDLE DEMO
Look at the demo!
And here is how to achieve it:
P.S.
elements to select a NEW one!
\ninside the code is justfor a New line inside the alert box 😉
😉