I would like to remove part (4 first characters) of a text in a list of span tags (filtered by the class name):
<span class="time">00:00:50</span>
<span class="time">00:01:22</span>
<span class="time">00:02:44</span>
I would like to get this:
<span class="time">0:50</span>
<span class="time">1:22</span>
<span class="time">2:44</span>
I try some codes using text.substr(1, 4)
but none of them works.
Could someone help me?