**HTML**

```
<p class="mytext">Lorem ipsum dolor sit amet</p>
<p class="mytext">Lo ipsum dolor sit amet</p>
<p class="mytext">Lorem</p>

```

**Javascript**

```
$(".mytext").each(function() {
    var n = $(this).text().length;
    //alert(n)
    if (n > 5) {
        alert(n + " more than 5");
        $(this).css("color", "red");
    }
});

```

I am trying to find character length for each `p` for doing some condition. can anyone pls help? [JsFiddle](https://jsfiddle.net/id10922606/dv8f6p5e/)