1

I have a quick question. Is it possible to put JavaScript into a cell when using MVC 3 WebGrid? I've been trying for days to figure out if this is possible, and I am having no luck.

My situation is simple: I have a WebGrid that displays data on songs that are contained in a database. So in that webgrid I have things like the title of the song, the duration, etc., but I am stuck as to how I am going to add a JavaScript audio player that plays the song of the current row in the WebGrid.

Anyway, that's the situation, and I hope you can help me. If it is possible to place JavaScript into a WebGrid, please explain how or at least point me in the right direction. Thanks.

4

1 回答 1

0

the script don't need to be inside the grid, it can be somewhere else and reference the cell through it's id.

于 2011-04-26T22:18:33.350 回答