here we are going to see, how to do the grid/list style view mode onclick by using javascript and jquery. this is very simple one. but in this post you have to concentrate on girds in css. but here i done only one gird for my sample. let see the simple thing in this. see the code.