I want to have all the id's of the radio buttons with the same name
I've tried using this
<input type="radio" name="user" id="Jason" value="Jason11">
<input type="radio" name="user" id="Adam" value="Adam11">
var names= $('input[type=radio][name="user"]').attr('id')
console.log(names)
but this only shows the first id
Is there a way to show both id's?