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.
«febbraio»
domlunmarmergiovensab
2627282930311
2345678
9101112131415
16171819202122
2324252627281
2345678