Page 1 of 1

How to delete all widgets of a collapsible component using jQuery or Apperyio

Posted: Thu Dec 18, 2014 8:00 am
by Solomon Habtu

Halo,
I have a collapsible component connected to a database collection and it worked. I would like to remove all the widgets of this collapsible when a button is click. In general I need to refresh the collapsible to no data. Could you suggest me a Jquery or apperyio command to include on button click js code?
I tried a lot
regards


How to delete all widgets of a collapsible component using jQuery or Apperyio

Posted: Thu Dec 18, 2014 9:22 pm
by Evgene Karachevtsev

Hello Solomon,

There is no command to clear all data inside collapsible block
You can write js code that finds all inside block and removes it one by one from DOM
http://gyazo.com/7248f2b5412ef5c31a23... - here you can see that label and radio components are inside
div with classes = "ui-collapsible-content ui-body-b"
Parent is in this case is mobilecollapsblock_9, that is part of all collapsible component.