Hello,

I would like to implement the following for a product node page:

- There are 5 radiobuttons for 5 slightly different pictures to choose
- If one selects a radiobutton a preview of the corresponding picture should appear on the page without reloading the whole page

I guess this cannot be done with php alone, but needs jquery? I am pretty familiar with php basics but not with jquery.

I would be grateful if somebody could direct me into right direction (i.e. can I do that with php or jquery? are there examples/tutorials of similar problems around?).

Thanks a lot.
Roger

Comments

seortiz’s picture

Hello Roger,

Changing a page without reloading it cannot be done with PHP (PHP is a server-side code).

You will need a client side code, thus Javascript such as jquery would be the way to go...

Regards,
Sergio