I'm new to Javascript and I'm trying to learn by tinkering with a webpage. So it is a button and when you click it, it gains a child with the id oddsInput. I cant get the values to change
function checksettings(payout) {
$('#oddsPayout').click();
var iodds = $('#oddsInput');
iodds.value = payout;
// $('glyphicon glyphicon-ok btn btn-success').click();
}
checksettings(2)