JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://jquery-joshbush.googlecode.com/files/jquery.maskedinput-1.2.2.min.js"></script>
<input type="text" id="ClientID" disabled="disabled" value="121222222222"/>
Unlock<input type="checkbox" onchange="CheckThis(this)" />
JavaScript
function CheckThis(obj){
document.getElementById("ClientID").disabled = obj.checked ? "" :"disabled";
}
$(document).ready(function () {
$("#ClientID").mask("999-999999999");
});