<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to Remove a List Group Item's Parent Element in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-remove-a-list-group-item-s-parent-element/m-p/1248296#M79903</link>
    <description>&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Sat, 14 Jan 2023 00:49:00 GMT</pubDate>
    <dc:creator>hectorsalamanca</dc:creator>
    <dc:date>2023-01-14T00:49:00Z</dc:date>
    <item>
      <title>How to Remove a List Group Item's Parent Element</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-remove-a-list-group-item-s-parent-element/m-p/1247580#M79868</link>
      <description>&lt;P&gt;I have a list, and there is a delete button in each list group item. The delete button should be used to remove the list item. I can just delete the button right now, but I'd like to remove the entire li part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function remove(ev) {
  var elem = document.getElementById(ev.target.id);
  elem.this.parentNode.id.remove();
  console.log(elem.this.parentNode.id);
}
&amp;lt;ul class="list-group"&amp;gt;
  &amp;lt;li class="list-group-item"&amp;gt;
    &amp;lt;p&amp;gt;Item 1&amp;lt;/p&amp;gt;
    &amp;lt;button type="button" id="btn1" onclick="remove(event)" class="Button"&amp;gt;Click&amp;lt;/button&amp;gt;
  &amp;lt;/li&amp;gt;
  &amp;lt;li class="list-group-item"&amp;gt;
    &amp;lt;p&amp;gt;Item 1&amp;lt;/p&amp;gt;
    &amp;lt;button type="button" id="btn1" onclick="remove(event)" class="Button"&amp;gt;Click&amp;lt;/button&amp;gt;
  &amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 12 Jan 2023 13:48:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-remove-a-list-group-item-s-parent-element/m-p/1247580#M79868</guid>
      <dc:creator>hectorsalamanca</dc:creator>
      <dc:date>2023-01-12T13:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to Remove a List Group Item's Parent Element</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-remove-a-list-group-item-s-parent-element/m-p/1247701#M79879</link>
      <description>&lt;P&gt;Maybe try this instead:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function remove(ev) {
	var listItem = ev.target.parentNode;
	listItem.parentNode.removeChild(listItem);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 17:45:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-remove-a-list-group-item-s-parent-element/m-p/1247701#M79879</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-01-12T17:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to Remove a List Group Item's Parent Element</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-remove-a-list-group-item-s-parent-element/m-p/1248296#M79903</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jan 2023 00:49:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-remove-a-list-group-item-s-parent-element/m-p/1248296#M79903</guid>
      <dc:creator>hectorsalamanca</dc:creator>
      <dc:date>2023-01-14T00:49:00Z</dc:date>
    </item>
  </channel>
</rss>

