So im generating few input fields and that works.
But i cant get the value of this generated input fields. I can make onchange work, but i still can't catch any value.
So i have tried a bunch of stuff with jQuery but nothing works. I alywas get undified.
jQuery(document).on('change', function (){
var id = "";
alert( this.value);
}
jQuery(document).on('change', function (){
var id = "";
alert( jQuery(this).attr('id'));
}
This is the field that gets generated
<input class="mb-1 ml-2" style="transform: scale(1.3);" type="radio" id="input-'+counter+'">'
which will look like
<input class="mb-1 ml-2" style="transform: scale(1.3);" type="radio" id="input-1">'
That works aswell.
But i cant get the id of this input field