On my Website, I display div with each person's info and a checkbox. I do this by getting data from mongodb and loop through the array with the following code. However, I am trying to see which checkbox has been checked so that I can delete those ones in the database. I have hard time figuring out how to actually check which checkbox has been marked. Can anyone please give me some suggestions?
everything = '<ul>'
everything += '<div class="contact">' +
'<div>' +
'<span class="contactTitle">' +
'<img src="' + imgurl + '"/>' +
'</span>' +
'<span class="contactTitle">' +
'<h4>' +
com.Name + '</h4>' +
'</span>' +
'</div>' + com.Phone + '<br>' +
'<a href="mailto:' + com.Email + '">' + com.Email + '</a><br>' +
com.Address + '<br>' +
'<input type="checkbox">' +
'</div>'
Aucun commentaire:
Enregistrer un commentaire