Jump to content

Css switch with jquery


Recommended Posts

There is several ways to do that.

You can do that on server side, or on browser side.

 

If you want to do it on browser side by using jquery to avoid reloading page, the best way to do that is by loading json data from server side, by using jquery, and using jquery to design html.

You should firstly begin to learn jquery programming.

Link to comment
Share on other sites

I am similar with jquery programming and I want to do this on browser side. Actually I made a successful example with jquery .css() function. But I am in doubt about is it an efficient method to do this. I added a jquery script at the top of product-list.tpl and its worked. But as I understood from your sentences it is an amateur method. Can you explain a little bit clearly how can I apply your browser side method?

Link to comment
Share on other sites

×
×
  • Create New...