If a click is made on the second td
which has overflow text of previous td
, the handler is returning the first td
as the text belongs to first td
. Instead of that i need to select the second td
irrespective of the overflow text it has.
Thanks in advance.
Play with: https://jsfiddle.net/zvbLz2n3/
A hackish css only way would be this
and so on...
EDIT: Now I realized the question isn't about css, I'm sorry about that.
Try this one with javascript
https://jsfiddle.net/zvbLz2n3/3/
EDIT 2 : Can someone confirm if this works.
Only css not-hackish solution
https://jsfiddle.net/zvbLz2n3/4/
I think instead of setting the attribute to true all the time you have to set it to false on blur and you need to set the css property
position:relative;
to thetd
: