Page 1 of 1

Select Box To Save Data To Local Storage

Posted: Wed Apr 29, 2015 11:20 am
by Nick Pitt

What i need to do is have a select box running from the database for the company with 4 different prices. As a result of this i then need to save 4 separate values to local storage dependent on the company name.

What is the best way of doing this ?


Select Box To Save Data To Local Storage

Posted: Thu Apr 30, 2015 5:13 am
by Serhii Kulibaba

Hello Nick,

Could you clarify what have you tried and what exactly does not work?

use JS below to read selected value:
var selectedValue = Apperyio("selectName").val();

If you want to write values from local storage to the select box - use REST or generic service with mapping for select box.