I need the input to be 42 to length long and must have 0x at the beginning like 0xcollaboratingcorerivnefvting so how can i achieve that using jquery
<html lang="en-US" class="lang-en" dir="ltr">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" href="/css/home.css" />
<script type="text/javascript" src="//code.jquery.com/jquery-compat-git.js"></script>
</head>
<body>
<input type="text" id="check" data-minlength="42" name="address" onKeyDown="javascript: var keycode = keyPressed(event); if(keycode==32){ return false; }" />
<button class="button button-rounded-rectangle" type="button" id="kato" disabled>Continue</button>
<script type="text/javascript">
//<![CDATA[
$(function () {
$("#kato").prop("disabled", true);
$("#check").on("input", function (e) {
if (this.value.length === 42) {
$("#kato").prop("disabled", false);
}
else {
$("#kato").prop("disabled", true);
}
});
});
//]]>
</script>
</body>
</html>