user1643087
user1643087

Reputation: 643

display an alternate text on mouseover for a table entry

I have a table one of whose column displays the employee id of the employees. i need to display there names when mouse moves on it . can anyone help me with that??

Upvotes: 42

Views: 57133

Answers (1)

Mr. Alien
Mr. Alien

Reputation: 157324

alt is an attribute, not a tag, and it is not for mouse over, it shows up when image is not loaded, try using title instead

So try this

<table>
  <tr>
    <td title="Employee Name">1</td>
    <td title="Another Employee Name">2</td>
  </tr>
</table>

Upvotes: 84

Related Questions