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
Niall292Asked:
Who is Participating?
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/
0

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
Niall292Author 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
0
Niall292Author 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
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

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

http://jsfiddle.net/jzqoc0m6/1/
0
Niall292Author Commented:
Did exactly what I needed and very simple to understand
0
Niall292Author 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
0
Tom BeckCommented:
You're welcome. Thanks for the points.
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.