Home >
front end > How to click on the list when the checkbox in the item does not show the list item is defined on the
How to click on the list when the checkbox in the item does not show the list item is defined on the
<script>
The function suppressPopover () {
Window. The event? Window. The event. The cancelBubble=true: e.s topPropagation ();
}
The function addListItem () {
Let listItem=document. The createElement method (" li ");
ListItem. SetAttribute (" data - toggle ", "popover");
ListItem. SetAttribute (" tabindex ", "0");
ListItem. SetAttribute (data - "trigger", "focus");
ListItem. SetAttribute (" title ", "title");
ListItem. SetAttribute (data - "placement", "bottom");
ListItem. SetAttribute (" data - the content ", "Details");
ListItem. InnerHTML="& lt; Input type=\ "checkbox " onclick=\ "suppressPopover () " & gt; The List Item ";
Let ele=$(listItem);
Ele. Popover ();
Document. The getElementById (" list "). The appendChild (listItem);
}
</script>