?
Inadvertently found that the switch button can be implemented on Li
http://jsfiddle.net/Gajotres/pzfr2/
?
?
?
?
?
?
?
?
Comprehend by analogy, finally realized the addition of radio button groups on Li
?
- @model QGateMobile.Areas.WG32.Models.SystemConfigModel
- @{
- ???? Viewbag.title = " system configuration ";
- }
- @section Header {
- [Email protected] (" Back ", "Index", "Home", null, new {Data_icon = "arrow-l", Data_ rel = "Back"})
- ????
- }
- ?
- <style type= "text/css" >
- ???? #raido-container {
- ???????? position:relative;
- ???????? float: right;
- ???????? margin-top: -10px!important;
- ????}
- ?
- ???????? #raido-container. Ui-slider {
- ???????????? margin-top: -50px!important;
- ????????}
- </style>
- ?
- ?
- ?
- <p>
- ???? Complete the system configuration here
- </p>
- <ul data-role= "listview" data-inset= "true" style= "List-style-type:none;" >
- ???? <li> @Ajax. ActionLink (" Database update ", "updatedb", "Home", new ajaxoptions ()) < /li>
- </ul>
- <ul data-role= "listview" data-inset= "true" style= "List-style-type:none;" >
- ???? <li data-role= "list-divider" > Anti-submarine Settings </li>
- ?
- ???? <li data-role= "fieldcontain" >
- ???????? <p>
- ???????????? Anti-submarine (multi-door anti-submarine on same controller)
- ???????? </p>
- ???????? <p>
- ???????????? Network segment (same network segment multi-controller sharing anti-submarine)
- ???????? </p>
- ???????? <p>
- ???????????? Zone (multiple controllers in the same region share anti-submarine)
- ???????? </p>
- [Email protected] {
- ???????????? string[] ss = new string[4];
- ???????????? if (Model.antiback = = 0)
- ???????????? {
- ???????????????? Ss[0] = "checked=\" checked\"";
- ????????????}
- ???????????? Ss[model.antibackbroadcast] = "checked=\" checked\"";
- ????????}
- ???????? <div data-role= "controlgroup" data-type= "horizontal" >
- ???????????? <input type= "Radio" name= "antiback" id= "antibackRadio1" value= "0" @ Html.raw (Ss[0])/>
- ???????????? <label for = "antibackRadio1" > Disable </label>
- ???????????? <input type= "Radio" name= "antiback" id= "AntibackRadio2" value= " 1"@Html. Raw (ss[1])/>
- ???????????? <label for = "AntibackRadio2" > anti-submarine </label>
- ???????????? <input type= "Radio" name= "antiback" id= "AntibackRadio3" value= "2" @ Html.raw (ss[2])/>
- ???????????? <label for = "AntibackRadio3" > Network segment </label>
- ???????????? <input type= "Radio" name= "antiback" id= "AntibackRadio4" value= "3" @ Html.raw (ss[3])/>
- ???????????? <label for = "AntibackRadio4" > Area </label>
- ???????? </div>
- [Email protected]*<input type= "checkbox" data-role= "flipswitch" name= " Anti"id="anti"checked=" ">*@
- ???? </li>
- </ul>
- @Scripts. Render ("~/bundles/anti")
?
?
?
Use a radio button on a list item in Jquery Mobile