Use a radio button on a list item in Jquery Mobile

Source: Internet
Author: User

?

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

?

  1. @model QGateMobile.Areas.WG32.Models.SystemConfigModel
  2. @{
  3. ???? Viewbag.title = " system configuration ";
  4. }
  5. @section Header {
  6. [Email protected] (" Back ", "Index", "Home", null, new {Data_icon = "arrow-l", Data_ rel = "Back"})
  7. ????
  8. }
  9. ?
  10. <style type= "text/css" >
  11. ???? #raido-container {
  12. ???????? position:relative;
  13. ???????? float: right;
  14. ???????? margin-top: -10px!important;
  15. ????}
  16. ?
  17. ???????? #raido-container. Ui-slider {
  18. ???????????? margin-top: -50px!important;
  19. ????????}
  20. </style>
  21. ?
  22. ?
  23. ?
  24. <p>
  25. ???? Complete the system configuration here
  26. </p>
  27. <ul data-role= "listview" data-inset= "true" style= "List-style-type:none;" >
  28. ???? <li> @Ajax. ActionLink (" Database update ", "updatedb", "Home", new ajaxoptions ()) < /li>
  29. </ul>
  30. <ul data-role= "listview" data-inset= "true" style= "List-style-type:none;" >
  31. ???? <li data-role= "list-divider" > Anti-submarine Settings </li>
  32. ?
  33. ???? <li data-role= "fieldcontain" >
  34. ???????? <p>
  35. ???????????? Anti-submarine (multi-door anti-submarine on same controller)
  36. ???????? </p>
  37. ???????? <p>
  38. ???????????? Network segment (same network segment multi-controller sharing anti-submarine)
  39. ???????? </p>
  40. ???????? <p>
  41. ???????????? Zone (multiple controllers in the same region share anti-submarine)
  42. ???????? </p>
  43. [Email protected] {
  44. ???????????? string[] ss = new string[4];
  45. ???????????? if (Model.antiback = = 0)
  46. ???????????? {
  47. ???????????????? Ss[0] = "checked=\" checked\"";
  48. ????????????}
  49. ???????????? Ss[model.antibackbroadcast] = "checked=\" checked\"";
  50. ????????}
  51. ???????? <div data-role= "controlgroup" data-type= "horizontal" >
  52. ???????????? <input type= "Radio" name= "antiback" id= "antibackRadio1" value= "0" @ Html.raw (Ss[0])/>
  53. ???????????? <label for = "antibackRadio1" > Disable </label>
  54. ???????????? <input type= "Radio" name= "antiback" id= "AntibackRadio2" value= " 1"@Html. Raw (ss[1])/>
  55. ???????????? <label for = "AntibackRadio2" > anti-submarine </label>
  56. ???????????? <input type= "Radio" name= "antiback" id= "AntibackRadio3" value= "2" @ Html.raw (ss[2])/>
  57. ???????????? <label for = "AntibackRadio3" > Network segment </label>
  58. ???????????? <input type= "Radio" name= "antiback" id= "AntibackRadio4" value= "3" @ Html.raw (ss[3])/>
  59. ???????????? <label for = "AntibackRadio4" > Area </label>
  60. ???????? </div>
  61. [Email protected]*<input type= "checkbox" data-role= "flipswitch" name= " Anti"id="anti"checked=" ">*@
  62. ???? </li>
  63. </ul>
  64. @Scripts. Render ("~/bundles/anti")

?

?

?

Use a radio button on a list item in Jquery Mobile

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.