And that creates (relatively) ill-formed HTML. I’m aware that HTML is
often
“anything goes”, but you don’t have quotes around the id=desc_div2. I
always
feel safer with id=‘desc_div2’, because many more things besides web
browsers should read my HTML.
When programming the stack of languages we call The Web, you need to
keep
track of which language you are in at all times, at the level of all
symbols. When you type a Ruby string like “new Effect.toggle(desc_div)”,
it
passes to JavaScript as: