Sliding Panels: how to get values of labels contained in a list (populated by a REST)
I have a Sliding panel containing a list populeted by an external REST Service.
in each list item i have 3 labels. one for description, one for id and one for url.
i would like to display on the list just the description
and on the click event of each list item do some actions like navigate to the url.
i can get the list item value by running on page load event the code:
code$('[name="list_allegati"]').find("li").each(function(){
$(this).click(function(){
// alert($(this).attr('id'));
alert($(this).val());
});
});
/code
but i don't know how to get the values of the laels contained in the list items.
could you help me?