jquery mobile grid view and list view on the same page

CurseDoX

New Member
New to jQuery Mobile. I have a list of stock that I want to be able to change the view of on the same page. So I have my list, then I want to be able to have two buttons at the top of the page:
  • List view (default)
  • Grid view
Then I can change the view of stock depending on which button I click. I have a working example:Here's an example URL view preview and click on 'Portfolio'How could this be done?
 
Back
Top