egglestn / multiple Goto Github PK
View Code? Open in Web Editor NEWSample project, demonstrating multiple radio buttons in RoR
Sample project, demonstrating multiple radio buttons in RoR
You can use the back button to navigate between pages. If you do, the radio button collections have not been reset, but don't show the current DB state either - so they are misleading
While unfixed, the workaround is to not use the back button
Is this solution accessible-friendly? Is there a way to make radio buttons accessible-friendly? What changes would it need to make it so?
... it's not needed
In JS updateStar
The toggle on the last line reverses the remove a few lines above. It works fine for different values, but if you click the same score twice, it will stay selected. In effect, once you have clicked, you can never not select a score value.
One approach is to only fire the remove if the score value is different. Alternative approaches welcome, as long as the result works and is fairly succinct
The README says
the [JS name field] is an exact match of the hidden field created by RoR in collection_radio_buttons
It is an exact match, but it wasn't created by RoR! It was made up by me.
When review 3 is picked, only star 3 stays solid - update the JS so all the stars to the left (0 + 1 + 2) are also solid
Repo needs a README
JS updateStar method:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.