save check box state angularjs ... button page.
i have complex search page generated via angularjs so
<input type="checkbox" class="checkall" id="all_types"><strong><?=lang('select_all')?></strong> <div class="span12" ng-controller="typesctrl"> <label class="checkbox inline" data-ng-repeat="record in records"> <input type="checkbox" class="small_checkbox" value="{{ record.type_id }}" name="auto_type[]"> {{ record.en_type_name }} ({{ record.type_count }})
after search selection complete check selected , send search url
/search?auto_type=1,4,5,7
the problem when click button ... state of checkboxes , select not saved. elegant way save checkbox state in scenario.
Comments
Post a Comment