I’m looking at this changeset http://dev.rubyonrails.org/changeset/5057
and I’m running edge revision 5196 so I’m assuming multiple id’s on element.hide would work.
I’m getting parse errors though
Also, right now I’ve created 5 divs , each one with STYLE=“display: none;”
Then I have 5 seperate link_to_remotes with :after => Element.show(‘somediv’)
However , what I can’t seem to figure out is what one element is showing and another is clicked
then 2 divs are showing.
I would like 1 div at a time, where the first one goes away when the second is clicked ?
Is there a way to do this ?
Using the above -
<%= link_to_remote (“Basic Info”,
Element.hide(‘canbckground’);
Element.hide(‘canposition’);
Element.hide(‘canskill’);
Element.show(‘basicinfo’);%>
Getting this error:
SyntaxError in
Candidates#show
Showing app/views/candidates/show.rhtml where line #3 raised:
compile error
./script/../config/../app/views/candidates/show.rhtml:3: parse error, unexpected ';', expecting ')'
I tried a few different ways of writing it.
Any right way ?
TIA
Stuart