Open menu in div beside row clicked in table

Hi Experts,

I have a table which will have different amounts of rows. On the last cell <td> I want to put the word Reports and when you either hover over it or click it I want a small div to open just outside the table but beside the record clicked with a menu of the reports which you can select from.
I think this can be done with some smart jquery and css  but I am just not sure how to position the div beside the selected record.
Thank you in advance
Niall GallagherDeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Tom BeckCommented:
You position the div with position:absolute while the table itself has position:relative.

Use some jQuery to show and hide the divs on hover or click.

In this jsfiddle example I'm using the jQuery DataTables plugin to format the table. Note the two External Resources. However that's optional.

http://jsfiddle.net/jzqoc0m6/

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Niall GallagherDeveloperAuthor Commented:
Tom,
That looks nearly exactly what I am looking for. The only issue I'm running into is, I can't click the links in the menu. As soon as I go to it, it disappears but it does look good
Niall GallagherDeveloperAuthor Commented:
Don't worry I just removed the $('.products').hide();

and put in a new function
('.products').focusout( function() {
$('.products').hide();
});
and it works great
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Tom BeckCommented:
Just add a hover event handler to the hidden <ul>s.

http://jsfiddle.net/jzqoc0m6/1/
Niall GallagherDeveloperAuthor Commented:
Did exactly what I needed and very simple to understand
Niall GallagherDeveloperAuthor Commented:
I just want to point out my words of wisdom earlier did the trick SOMETIMES. There were also time the menu would not hide so I ended up doing the way Tom advised.

Thanks again
Tom BeckCommented:
You're welcome. Thanks for the points.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.