js get lenght of h1 code example Example: js get lenght of h1 alert("Text length: "+$("h1").text().length);