PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I added a small script that can open (show) a layer with a hint when mouse is over it, i would like to use it to display currency rate on the website but since the list of products is generated from a mySQL table every time $price will always change till it reaches the last record in the table.
Is there a way for me to read a value from a HTML table cell or can i place a hidden field somewhere to populate the price so i can retreeve it once the mouse is over it?
<script>
function blah()
{
alert(document.getElementById('something').innerHTML);
}
</script>
<table>
<tr>
<td id="something">
some text in here
</td>
</tr>
</table>
<input type="button" value="click me" onClick="blah()">