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.
«aprile»
domlunmarmergiovensab
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011