I’m trying to locate only children that begin with the text “EPCF” from my XML.
Here is the code I have today:
$(xml).find('Cat[name="' + catname + '"]').children("EPCF_1_1").each(function() {
This does indeed return only EPCF_1_1
My question is how do I return anything that begins with EPCF
I have tried
$(xml).find('Cat[name="' + catname + '"]').children().filter(':contains(EPCF)').each(function() {
with no luck and
$(xml).find('Cat[name="' + catname + '"]').children().filter(':contains("EPCF")').each(function() {
also with no luck – neither return errors.
http://api.jquery.com/attribute-starts-with-selector/