jeudi 16 juin 2016

RadioButtonFor not displaying radio button


When I use Html.RadioButtonFor it is rendering as below

<input checked="checked" data-val="true" 
      data-val-required="The One field is required." 
      id="radioOne" name="One" type="radio" value="Coffee" 
      class="ui-helper-hidden-accessible">

I see this class automatically attached to my input: ui-helper-hidden-accessible, because of this my browser is not displaying radio buttons! How do I fix this?

I already tried this but no use.

$(function () {

    $("#One").removeClass("ui-helper-hidden-accessible");
});

Aucun commentaire:

Enregistrer un commentaire