Forum: Ruby on Rails How to implement checkbox-like selection with client-side state & controls?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
jon-k (Guest)
on 2009-04-07 14:16
(Received via mailing list)
Hi,

This is my first Rails project, and I've just hit my first stumbling
block... I'm looking for some general pointers on how to implement the
following:

* Allow the user to toggle the selection of words in a given string
* Change the colour appropriately (ideally using CSS class)
* Prevent non-adjacent words from being selected
* Allow the user to submit the current selection

The text needs to read as a sentence, and I want to minimise server
involvement.

Is there anything in Rails or its plugins to help me out here, or is
pure Javascript the answer?

cheers,
Jon
This topic is locked and can not be replied to.