views:

382

answers:

1

Hi,

I have an MVC application generating a series of radio buttons based on a dynamic set of questions. The questions are generated, and the star rating works perfectly, but for some reason, when I try to have each radion button in its own cell in a table, once the javascript kicks in, all the radiobuttons appear in just one cell. Without the javascript, they appear in the correct cells.

I'm using a table because I have a header graphic which explains ( I know, it's self explanatory, but that is what was requested ) what the ratings mean, which should line up above the questions' star ratings.

Does anyone know of any way to stop the radiobuttons doing this? I'll probably just end up using CSS, but it would be interesting to know why this happens.

Thanks for any help.

+1  A: 

You will have to edit the plugin as this will hide the radios and replace them with the stars which I assume is just rendering the elements next to each other ignoring your original td structure.

redsquare
had an awful feeling that was the answer - I'll stick to CSS and try to do the layout that way.
Paul
My words exactly :) Most star rating plugins work this way
Al