I think you will have to calculate it from the table's position + the
width of each column.   Table cells do not have x,y coordinates
defined.

On Jan 7, 10:45 pm, "saiful.ha...@gmail.com" <saiful.ha...@gmail.com>
wrote:
> hi all,
>
> I want make simple sub menu, id mouse over the column of table will
> show the div with some text finally.
> can i get the XY position foreach column in table?!
>
> JQuery Code
>
> $(".left_menu_td").mouseover(function(){
> $("#sub_menu").css({"top":this.position().top,
> "left":this.position.left, "display":"block"});
>
> });
>
> HTML code
> <div id="left_menu">
> <table class="left_menu_table">
> <tr><td class="left_menu_td">One</td></tr>
> <tr><td class="left_menu_td">Two</td></tr>
> <tr><td class="left_menu_td">Three</td></tr>
> </table>
> </div>
>
> <div id="sub_menu" style="position:absolute;display:none"> Sub Menu
> from Column </div>
>
> I am always get undefine this.position().top, can i get jquery object
> for each column?
>
> ~ saiful haqqi ~

Reply via email to