JSFiddle - React, Tailwind, and code Playground
by j08691
HTML
<div class="xxx">aaa</div>
JavaScript
var val = $(".xxx").html();
var matches = val.match(/\d+/g);
if (matches != null) {
console.log('number');
}
by j08691
<div class="xxx">aaa</div>
var val = $(".xxx").html();
var matches = val.match(/\d+/g);
if (matches != null) {
console.log('number');
}