Radio Buttons are used to limit users to select single option.By using disabled class , we can change the state of radio to disabled.
<html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>ac </head> <body> <div class="container"> <div class="radio"> <label><input type="radio" value="">Radio Button 1</label> </div> <div class="radio disabled"> <label><input type="radio" value="" disabled>Radio Button 2</label> </div> </div> </div> </body> </html>
No comments:
Post a Comment