here are some methods:
You can translate it into your language site to better understand.
here's the code I've used them in theme modified by me, I replaced the city with phone number
<?php if ( osc_item_city_area() != "" ) { ?><li class="phone_icon"><?php _e("Telefon", 'modern'); ?>:
<strong><span id="numbere" data-last="<?php echo osc_item_city_area(); ?>"><span>07<font style="color: red;">XXXXXXXX</font></span><img id="imaginenumar"style="float:right;margin-right:20px;" title="Arată numărul de telefon" src="<?php echo osc_current_web_theme_url('images/telefon2.png') ; ?>"/></span></strong>
</li><?php } ?>
<script type="text/javascript">
$('#numbere').click(function() {
$(this).find('span').text( $(this).data('last') );
});
$(document).ready(function() {
// reveal the tag with id="numbere", when the tag with id="imaginenumar" is clicked
$('#imaginenumar').click(function(){
$('#numbere').show( function() {
$('#imaginenumar').hide();
});
});
});
</script>
You can download the theme from this link for a better understanding. Changes are made to the file item.php