function create_checkbox(type, index, json) { if(json.length > 0) { $('#checkbox_container').append('