\"Hi HElP ME ok & 相关标签:
ok
Looks like your id selector is referenced incorrectly. It should be $("#1") instead of $("#id1").
Easy mistake to make, but hard to find.
$('#id1').find('img').each(function(index){ var split_text = $(this).html().split(/<img[^>]*>/)[index]; alert(split_text) });