Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

jquery get innerhtml of span

var text = $('#select2-SearchByUser-container').contents().filter(function() {
  return this.nodeType == 3 && this.nodeValue.trim();
}).last().text().trim();

console.log(text);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #innerhtml #span
ADD COMMENT
Topic
Name
6+7 =