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.
«dicembre»
domlunmarmergiovensab
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234