Forum: Ruby on Rails How to set css styles with variables in rails if certain item is selected?

Posted by Juan Mercedes (evanx)
on 2013-02-02 20:07
Attachment: sortable.txt (1,37 KB)
I'm doing the Ryan Bates Sortable Table Columns screencast

If the item is inside a th tag and I want to a style if the item is 
selected
how
can I do it?
Posted by Robert Walker (robert4723)
on 2013-02-03 18:51
Attachment: index.html (1,2 KB)
Juan Mercedes wrote in post #1094911:
> I'm doing the Ryan Bates Sortable Table Columns screencast
>
> If the item is inside a th tag and I want to a style if the item is
> selected
> how
> can I do it?

I have attached a quick demo that might help get you started...
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.