onchange of a select box you can use remote_function to call an action and user replace_html or on your rjs file to replace the html to show the jpg
On Dec 6, 4:03 am, jayoshi13 <[email protected]> wrote: > Hi > > I'm developing my first rails application and would like advice on how > to show a small image in a table cell based on a selection. This will > be based on a user selecting a Risk score from a select or check box > - > > high_risk = red.png > medium_risk = orange.png > low_risk = yellow.png > information = blue.png > > Thanks > > Jayoshi Syed Samiuzzaman software Engineer Code71 Inc (www.code71.com) product: www.scrumpad.com blog: samiuzzaman.blogspot.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

