I have a random number of collapsibles
inside a listview
element.
What I would like to know is that if there is a way of "knowing" if the listview
has any collapsibles
in it before proceeding to the next page.
This Fiddle pretty much represents what I have so far.
I would like some sort of client side validation that would check if the "user" has added "medicines" to the list (in a collapsible form) before proceeding.
I've tried playing around with this bit of code:
$("#medListLi").find('div[data-role=collapsible]')....;
But can't seem to know how to properly approach a solution.
Maybe I'm looking at solving this in the wrong way, any suggestions will be very much appreciated.