jquery - ASP.NET MVC RadioButtonFor Not Selected On Load -
there many other questions here on stack overflow , elsewhere, have spent far time sifting through them answers not ask 1 myself. have tried many of solutions found here , none of them work. my problem stated in title; radio buttons not being set on page load , can't figure out why. in code below model has boolean value cansubmit, cansubmityes , cansubmitno id's generated id's using viewcontext.viewdata.templateinfo.getfullhtmlfieldid("cansubmityes") and viewcontext.viewdata.templateinfo.getfullhtmlfieldid("cansubmitno") my radio buttons , corresponding labels set following: @html.labelfor(function(m) m.cansubmit, "yes", new {.for = cansubmityes}) @html.radiobuttonfor(function(m) m.cansubmit, true, new {.id = cansubmityes, .class = "submit-toggle-yes"}) @html.labelfor(function(m) m.cansubmit, "no", new {.for = cansubmitno}) @html.radiobuttonfor(function(m) m.cansubmit, false, new {.id = cansubmitno, .class...