I have to count total number of textboxes available in a HTML page using textbox
For total number of textboxes count in HTML Page
$(‘input[type=text]’).length
For total number of visible textboxes count in HTML Page
$(‘input[type=text]:visible’).length
You can use,
$("input:text").length
For counting the total number of textbox available in the HTML you can use following techniques:
jQuery:
$('input').length
JavaScript:
document.querySelectorAll('input').length
Hope this helps you.
Auto Sync....
Select Categories