Hi
I have another cancel button just below the above submit_to_remote
.It has also the same html class applied
<%= link_to_remote( "Cancel",
{:update => "search_kb_div",
:url => {:controller => 'service_desk', :action =>
'kb_result_cancel_button', :id => @params[:id]}},
{:class => 'itilbuttonlink1'}) %>
But it is working properly.Normally a white background and when pointing
out a grey one.Is my way of specifying class to submit_to_remote not
right?
It should work. Please check the output html source to see if the
generated input tag has the class attribute. If so, there might be
some issue with your CSS style.
I don't know what your problem is, but when I have multiple submit
buttons I do it differently and it works. I put the class on a div
around the buttons. But it's not exactly the same thing, of course.
<div class="whatever">
<%= link_to_remote... %>
...and so on
</div>