I have a div,
<div id=refer_friends> <input type='text' name='refer1'> <input type='text' name='refer2'> <input type='text' name='refer3'> </div>
How to check how many input elements between a refer_friend div?
I am using jQuery.
$('#refer_friends :input').length;
When you say βinput elementsβ, this will result in all input elements. Use input[type=text] or :text to get only text elements.
input[type=text]
:text
$("#refer_friends").find("input[type='text']").length;
alert($("#edit_changes *:text").size());
problem fixed
Source: https://habr.com/ru/post/1300283/More articles:How to get tagged code from StarTeam (stcmd.exe)? - starteamHow to create HTML 5 compatible code from Visual Studio 2008? - html5ofstream - determine if a file has been deleted between open and closed - c ++Specifying default Unity type mappings for a common interface and a pair of classes - dependency-injectionHow to send dynamically generated file in rails application - filecategory codeigniter β subcategory β system subsubcategory - codeigniterMysql regex hex characters - regexIBM WEME J9 Invalid padding exception - javaHow to check if UTF-8 binary string is in mysql? - regexhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1300288/what-are-the-alternatives-to-paypal-for-non-supported-countries&usg=ALkJrhjhXZPVHsDDzfblY2niTcVgjmMUBgAll Articles