Remove last digit from input type="tel" in HTML : <p>I have full dialpad code .</p>

<p>Clear button clear all text from dialpad window. but i want to delete only last digit which i dial from dialpad.</p>

<p>language only javascript,jquery and html.</p>
