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

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -