Json Status Flip Switch ??

Json Status Flip Switch ??

How do I run status all  page, Flip Swtich ??? ( '#page1' , '#page2' , '#page3' vs... )
function updateControls() {
$.getJSON(\/status.json\, function(json) {
$.each(json, function(key, value) {
$(\#\+key).val(value).slider(\refresh\);
});
});
}
$('select').bind('change', function(event) {
element = event.target.id;
if (element.substr(0, 6) == \outlet\) {
eleid = element.substr(6, 2);
} else {
eleid = 0;
}
command = event.target.value;
$.get('/cmd', { 'eleid' : eleid, 'cmd' : command });
});
$(document).ready(function () {updateControls();
});