I want to create a multiple select list, in this if user select a single/multiple records from it and refreshes or selects next/previous page of a list then selected records from list should remain selected.
For example, I have created a button My Opportunities on account, After clicking on that button it redirects me to the VF page consisting list of all my opportunities(This much i have created with pagination and sorting). What I want is, When I select multiple opportunities from list and click on save button, the selected list should remain same even if i visit that page again in future. And there is one field created on account which adds the amount of selected opportunity to that field(I have covered this). What i want is when i deselect the selected records from list then the opportunity amount should get minus from the field that i have created on account.