我试图通过Javascript / jQuery确定图像是否是图像编号。
现实情况是,我有动态生成的数据,因此数字会改变位置。
此图片或多或少对应于此代码:
<div id="a_pin1_1" class="digit d-0"><img alt="" id="img_pin1_1" class="pin-digit" src="./PinpadIconsHandler.ashx?idSs=97f8044b-6304-4ca1-9ac1-2d5732817f0c&c=1&t=20160219131147" onclick="Arquia.insertPinPadDigit2('pin1', '0');return false;"></div>
<div id="a_pin1_2" class="digit d-1"><img alt="" id="img_pin1_2" class="pin-digit" src="./PinpadIconsHandler.ashx?idSs=97f8044b-6304-4ca1-9ac1-2d5732817f0c&c=1&t=20160219131147" onclick="Arquia.insertPinPadDigit2('pin1', '1');return false;"></div>
<div id="a_pin1_3" class="digit d-2"><img alt="" id="img_pin1_3" class="pin-digit" src="./PinpadIconsHandler.ashx?idSs=97f8044b-6304-4ca1-9ac1-2d5732817f0c&c=1&t=20160219131147" onclick="Arquia.insertPinPadDigit2('pin1', '2');return false;"></div>
<div id="a_pin1_4" class="digit d-3"><img alt="" id="img_pin1_4" class="pin-digit" src="./PinpadIconsHandler.ashx?idSs=97f8044b-6304-4ca1-9ac1-2d5732817f0c&c=1&t=20160219131147" onclick="Arquia.insertPinPadDigit2('pin1', '3');return false;"></div>
<div id="a_pin1_5" class="digit d-4"><img alt="" id="img_pin1_5" class="pin-digit" src="./PinpadIconsHandler.ashx?idSs=97f8044b-6304-4ca1-9ac1-2d5732817f0c&c=1&t=20160219131147" onclick="Arquia.insertPinPadDigit2('pin1', '4');return false;"></div>
<div id="a_pin1_6" class="digit d-5"><img alt="" id="img_pin1_6" class="pin-digit" src="./PinpadIconsHandler.ashx?idSs=97f8044b-6304-4ca1-9ac1-2d5732817f0c&c=1&t=20160219131147" onclick="Arquia.insertPinPadDigit2('pin1', '5');return false;"></div>
<div id="a_pin1_7" class="digit d-6"><img alt="" id="img_pin1_7" class="pin-digit" src="./PinpadIconsHandler.ashx?idSs=97f8044b-6304-4ca1-9ac1-2d5732817f0c&c=1&t=20160219131147" onclick="Arquia.insertPinPadDigit2('pin1', '6');return false;"></div>
<div id="a_pin1_8" class="digit d-7"><img alt="" id="img_pin1_8" class="pin-digit" src="./PinpadIconsHandler.ashx?idSs=97f8044b-6304-4ca1-9ac1-2d5732817f0c&c=1&t=20160219131147" onclick="Arquia.insertPinPadDigit2('pin1', '7');return false;"></div>
<div id="a_pin1_9" class="digit d-8"><img alt="" id="img_pin1_9" class="pin-digit" src="./PinpadIconsHandler.ashx?idSs=97f8044b-6304-4ca1-9ac1-2d5732817f0c&c=1&t=20160219131147" onclick="Arquia.insertPinPadDigit2('pin1', '8');return false;"></div>
<div id="a_pin1_10" class="digit d-9"><img alt="" id="img_pin1_10" class="pin-digit" src="./PinpadIconsHandler.ashx?idSs=97f8044b-6304-4ca1-9ac1-2d5732817f0c&c=1&t=20160219131147" onclick="Arquia.insertPinPadDigit2('pin1', '9');return false;"></div>
是否有想法使用Javascript / jQuery识别显示图像的数字?
致以问候并感谢您的帮助