.push(candidates[i].party)

}


console.log(candidateDistrict)
//console.log(candidateParty)

//$("#group_2").click(function() {
var hours= $("#starttim").val();
try{
Electioncreationcontract = new web3.eth.Contract(JSON.parse(abi),contractAddress);



//console.log(a)
const secondFunction = async () => {
var btn = document.getElementById("group_2")
      			btn.style.display = 'none';
  const result = await Electioncreationcontract.methods.startelec(candidateNames,candidateParty,candidateDistrict,hours).se