push array into html button code example Example: on.click save to array <input type="checkbox" onclick="CheckBoxShortList('a','b','c');">