I have a code
HTML :
<input type="hidden" name="test[]" id="test_0" value="123456789">
Javascript :
$(".test").each(function(){
console.log('Test Value : '+ $(this).val());
});
Result :
Test Value =
The question :
Why result of console.log for $(this).val() inside my Javascript code give result empty ? And how to fix it without change the Javascript code?
Thank you
"test"class. If you are seeing"Test Value ="in the console there must be other elements not shown.