Topic: hover class link not working in firefox

  i  have following line in viewpage. if i click on search button. it should go to respective page. but it is staying on same page after clicking button.
     The following lines is working is chrome. But it is not working in firefox. i think the problem related to hover class.   
  a:hover {   text-decoration: underline;   } 
        <%= link_to content_tag(:button, "Search",:class => "search-button"), "/search/#{type}s", :id=>"search-button", :onclick => "this.href = this.href+'?q='+document.getElementById('#{type}_search').value"%>

pls sugges me some answer...
Thank u..

Last edited by karunakaran (2012-06-27 12:01:07)