Answers for "jquery get innerhtml of span"

0

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);
Posted by: Guest on May-02-2022

Browse Popular Code Answers by Language