Strange event.target.id value on grid click

i would like to get the row no in a grid, however i found that sometime event.target.id is return “” if i have a html tag in the grid field, ie

v="<font style='font-size:14px'>this is my data</font>"
grid1.setValue(i,0,v)

when i click the grid, event.target.id is blank (sometimes), but if i change to

v="this is my data"
grid1.setValue(i,0,v)

then event.target.id is return the correct value

Any help?

Thanks
Teo

Try this:

v="<font style='font-size:14px' id='grid1_" & i & "_0"'>this is my data</font>"

or

s = "grid1_" & i & "_0"
Eval(s).style.fontSize="14px" 

Inserting some types of html code into a common grid cell seem to cause this issue.

John