Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pop-up on hovering over a table cell <-- Is this possible in JavaScript? If so, How?

I've displayed a table of used-items for sale.

I'd like to let used just hover-over an item's table-cell, to display item's price, eg, in a pop-up text-box.

Is this possible in JavaScript?

If I'd need the (row, col) (eg, in another location format) how to get those?

like image 659
IVI Avatar asked Dec 09 '22 06:12

IVI


1 Answers

You don't need Javascript for this: you could use a title attribute for each item.

<td title="Title">Item<!-- Will display a tooltip with "Title" on hover --></td>

jsFiddle demo

like image 135
Digital Plane Avatar answered Dec 28 '22 07:12

Digital Plane