how to get value from hidden input type array using jquery -


how value hidden input type array input below , trying code

  <input type="hidden" name="position[]" value="10">   var arr= $('input[type="hidden"][name="position[]"]').val(); 

try code

var arr = $('input[type="hidden"][name="position[]"]').map(function(){   return this.getattribute("value"); }).get(); 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -