JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/ui-lightness/jquery-ui.css">
Click the number to reveal:

<div id="number">949<span>XXXX</span><span style="display:none;">1234</span></div>

JavaScript

$('#number').click(function() {
    $(this).find('span').toggle();
});