JSFiddle - React, Tailwind, and code Playground
by Shree Khanal
HTML
<input id="txtInput" type="text" value="remain 24" name="none">
JavaScript
var Number = $("#txtInput").val().split(' ')[1];
alert(Number);
by Shree Khanal
<input id="txtInput" type="text" value="remain 24" name="none">
var Number = $("#txtInput").val().split(' ')[1];
alert(Number);