Jump to content

[SOLVED] Context Menu


ldsmike88

Recommended Posts

I have a table with a list of values similar to the following:

 

Dog 4
Cat 2

 

I am trying to setup a nice right click menu so when you right click on different rows in the table I want a different menu to pop up. For example, if you right click on the row titled Dog the menu will have an option that says "Delete Dog" and if you click on the row that says Cat the context menu will say "Delete Cat." How do you make the context menu row specific? Any ideas would be greatly appreciated! Thanks!

 

Michael

Link to comment
https://forums.phpfreaks.com/topic/46778-solved-context-menu/
Share on other sites

There are a lot of ways you can do this. It is going to include JavaScript some how. Whether you want to write it yourself or use a free script out there on the web, that is your call. Here is a link that has a right click menu tutorial.

 

http://luke.breuer.com/tutorial/js_contextmenu.htm

Link to comment
https://forums.phpfreaks.com/topic/46778-solved-context-menu/#findComment-228235
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.