How to get the value of multiple hidden field by name using Jquery ?

This post shows you that how to get the value of multiple hidden field by name property.
Let’s see an example.

<input type="hidden"  name="hidden_data[]" value="3180">
<input type="hidden"  name="hidden_data[]" value="3181">
<input type="hidden"  name="hidden_data[]" value="3182">
<input type="hidden"  name="hidden_data[]" value="3183">

Just execute the below script.

$('input[name="hidden_data[]"]').each(function(k,v){
alert(v.value);
});
Please follow and like us:

Leave a Reply

Your email address will not be published. Required fields are marked *