Also, how would Rails degrade this link if javascript was disabled? In
other words, how do I get it to display by default if javascript was
disabled? Or would I be responsible for that, not Rails?
Also, how would Rails degrade this link if javascript was disabled? In
other words, how do I get it to display by default if javascript was
disabled? Or would I be responsible for that, not Rails?
But as far as me allowing non-javascript users to see the form by
default, I was thinking I could just use javascript to set the "display:
none" styling. I tried that by doing this:
but I get a javascript error "add_comment is not defined". I know it's
defined but am I implementing the javascript incorrectly? What's the
"rails way" to do this? Put my javascript somewhere else, instead of at
the bottom of this particular view I'm in?
But as far as me allowing non-javascript users to see the form by
default, I was thinking I could just use javascript to set the
"display:
none" styling. I tried that by doing this: