I'm trying to get the row for controls that can have ids like the one below (generated by asp.net webform).
id="contentMain__lvTSEntry__tbxMinute_1"
I'm trying to see if I can capture just the digit, so I'm using the below javascript.
if (e.id.indexOf("_tbxMinute") != -1) {
if (parseInt(e.value) > 59) {
var cid = e.id;
var patt = '\d+'
var test = cid.match(patt)
alert(test)
}
So far I'm getting null. How do I get digit from the control id?
Thanks for helping
e.id.indexOf("_tbxMinute")ore.id.indexOf("_tbxHour")?