How can I set selected = trueand disable this switch
selected = true
<%= Html.RadioButtonFor(m =>m.AddToLevel ,new {id = "rdSameas" }) %>
The second parameter is the value: truefor the selected:
true
<%= Html.RadioButtonFor(m => m.AddToLevel, true, new { id = "rdSameas", disabled = "disabled"}) %>
<%= Html.RadioButtonFor(m =>m.AddToLevel ,new {id = "rdSameas", checked = "checked", disabled = "disabled" }) %>
Source: https://habr.com/ru/post/1754569/More articles:trigger selection box to pop up when another item is clicked - jqueryHow to allocate memory and determine array sizes dynamically in C? - cHow to configure log4net for backup - log4netHow to find the difference between 2 files in a shell script - bashHow to set log4net log in file if it could not write to the database? - c #Как создать ветку из тега SVN с Maven? - branchC #: AsyncCallback not called on Socket.BeginReceive - c #How to get full production.log from rails application in heroku? - ruby-on-railsHow to show files that were merged without fast forward in Git? - gitDatabase source code versus schema change scripts - version-controlAll Articles