$(document).ready(function() { var cls='person'; // Name of the class you are referring $('.'+cls).text($('.'+cls).text().substring(0,$('.'+cls).text().length-1)); });