How to Select an Element Using JQuery
This question already has an answer here:
You can use .
to target elements by class name :
$('.inputCaptcha')
I'd suggest you to go through jQuery official learning center to learn more about jQuery.
Your element has class attribute. You can use class selector to target it.
var captchinp = $('.inputCaptcha');
Just select it by its class
$('.inputCaptcha')
or if you want to only select inputs with the class:
$('input[type=text].inputCaptcha')
链接地址: http://www.djcxy.com/p/83098.html
上一篇: 类不工作的jquery选择器选择(bootpeg)
下一篇: 如何使用JQuery选择元素