1

I wanted to have the submit_tag in rails 2.3 hidden by default i.e. get style="visibility:hidden" in the html output for the submit_tag. I searched the APIs but wasn't of any help. I tried sth. like

<%= submit_tag 'Save', :id=>"submitBtn"+i.to_s, :visibility=>"hidden"%>

just in case hoping that it might work. But it didn't work. :-(

1 Answer 1

3

try <%= submit_tag 'Save', :style => "display:none" %>

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.