Jquery : cercare tag html in una stringa

Esempio



   1:  var text = 'some string here with <a href="#link">http:something.com</a> more string and more links also';
   2:   
   3:  text = $('<div>' + text + '</div>');
   4:   
   5:  text.find('a').each(function() {
   6:      var string = $(this).html();
   7:      
   8:  });
   9:   

posted @ giovedì 10 dicembre 2009 17:22

Print

Comments on this entry:

# re: Jquery : cercare tag html in una stringa

Left by he at 13/11/2014 19:12
Gravatar
becoming landscapes collecting credit score check growing recent ebbs and flows credit report score process new 441
Comments have been closed on this topic.
«gennaio»
domlunmarmergiovensab
2930311234
567891011
12131415161718
19202122232425
2627282930311
2345678