I have a mobile list view where I need to allow a user to select an item and/or decide if that item should be added to a favorites list. I can have the user select the item just find but I'm not sure how to allow them to add that item to their favorites. I have an image on one side of the list that the user should click on to add the favorite. How do I determine what part of the item the user clicked. I know it should be something like
but I'm not sure how to use the target property. I tried using e.target.id but that didn't work and I haven't found any documentation at this point.
click: function (e) {
e.target ?
}