i have the following code:
<td><%= link_to(image_tag("delete.gif", :size => "16x16", :alt => "Delete Entry"), phone, :confirm => 'Are you sure?', :method => :delete, :remote=>true, :class=>'delete_phone') %></td>
in my view. Now, it all works fine and does what I need it to, but when I hover over the icon, well, it doesn't show me any text. I've tried in Firefox and Chrome.
Has anyone else come across the same issue?
Thanks!
Best Answer
#protip - it can be a painful (and very un-DRY) exercise to add
title
s for all your images. To make this a lot less painful all my apps ship with this JS (require jquery):This sets the
title
of anyimg
without atitle
to the value of it'salt
attribute.