I have a grid inside a partialview of index view in a MVC project. I add a context menu to the grid. This menu has 4 items. Which item(s) will show up depends on how many rows of grid are selected. I assign id to each menu item and tried to use hide() and show() to show certain menu item(s) but it doesn't work. Anyone know how to do that?