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

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -