Saved X
Google login
SignUp with Email
X

How to get all the values of input array element jquery

theindreshverma ( Added  26 Oct 2021, 12:09 am )
Login

<input type="text" name="pname[]" value="" />
<input type="text" name="pname[]" value="" />
<input type="text" name="pname[]" value="" />
<input type="text" name="pname[]" value="" />
<input type="text" name="pname[]" value="" />
<input type="text" name="pname[]" value="" />

<script>
var checkedValue = $('input[name="categories[]"]:checked').map(function () {
                        return $(this).val();
                   }).get();

</script>

Sourcecode Tags

More Sourcecodes

More Sourcecodes