I have multiple hidden fields of the form
<input type=“hidden” class=“mail-contacts” name=“to” value=“abc1”>
<input type=“hidden” class=“mail-contacts” name=“to” value=“abc2”>
<input type=“hidden” class=“mail-contacts” name=“to” value=“abc3”>
Number of hidden fields can be different for different cases. How can i get the values of these hidden fields ? As this is an array so can’t get it with
document.getElementById(‘’)
I need to get the values of these hidden fields and then pass it as query parameter. Please help me out how can i do this. Thanks.
Thanks for the response.
I want to get values of all hidden fields with name “to” in one javascript array and pass it in query string, that is the reason i am putting array for hidden fields.
Couple of things i need help abt your code:
How can i get only those hidden field values whose name is “to”
Is it possible to send array “arr” as query parameter ?