I need to remove the unwanted characters from a field. my current results inside the field are <DT></DT><DD>57 MINUTES</DD>
i try this but is not working
jQuery('display').val(function(index, val){
return val.replace('<DT></DT><DD>', '').trim();
});
<input type="hidden" id="display" value="<DT></DT><DD>0 MINUTES</DD>">
the wanted result its only the minutes.