<div class="onoffswitch"> <input type="checkbox" data-bind="checked: ioValue" class="onoffswitch-checkbox" id="io1"> <label class="onoffswitch-label" for="io1"> <span class="onoffswitch-inner"></span> <span class="onoffswitch-switch"></span> </label> </div> <div class="onoffswitch"> <input type="checkbox" data-bind="checked: ioValue" class="onoffswitch-checkbox" id="io3"> <label class="onoffswitch-label" for="io3"> <span class="onoffswitch-inner"></span> <span class="onoffswitch-switch"></span> </label> </div>
self.ioEvent = function(data, event) { console.log(1) console.log(data) console.log(data[0]) console.log(data[1]) $.ajax({ type: "GET", dataType: "json", data: {"io": data[0], "status": data[1]}, url: "/plugin/test/setIOcheckbox", async: false }); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)