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.
«maggio»
domlunmarmergiovensab
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567