Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. <input type="checkbox" name="bar" value="1" id="id_bar" />
  2. <label for="id_bar">Bar</label>
  3.  
  4. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  5. <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.8.0.min.js"></script>')</script>
  6. <script type="text/javascript" src="/static/js/vendor/jquery-ui-1.8.23.custom.min.js"></script>
  7. <link rel="stylesheet" href="/static/css/overcast/jquery-ui-1.8.23.custom.css" />
  8.  
  9. $(document).ready(function(){
  10. var checkboxes = $('input[type=checkbox]');
  11. try{
  12. $(checkboxes).button();
  13. }
  14. catch(e)
  15. {
  16. alert(e);
  17. }
  18. });
  19.  
  20. $(document).ready(function() {
  21. $("#radio").buttonset();
  22. })
  23.  
  24. $(checkboxes).click();
  25.  
  26. $(document).ready(function(){
  27. var checkboxes = $('input[type=checkbox]');
  28. try{
  29. checkboxes.button();
  30. }
  31. catch(e)
  32. {
  33. alert(e);
  34. }
  35. });
  36.  
  37. $(document).ready(function(){
  38. try{
  39. $('input[type=checkbox]').each(function(index){
  40. $(this).button();
  41. });
  42. }
  43. catch(e)
  44. {
  45. alert(e);
  46. }
  47. });
  48.  
  49. $('input[type=checkbox]').each(function(index, value) {
  50. $(this).click();
  51. });
  52.  
  53. var checkboxes = $('input[type="checkbox"]');
  54.  
  55. checkboxes.button();
  56.  
  57. checkboxes.buttonset();
  58.  
  59. <form>
  60. <div id="radio">
  61. <input type="radio" id="radio1" name="radio" /><label for="radio1">Choice 1</label>
  62. <input type="radio" id="radio2" name="radio" checked="checked" /><label for="radio2">Choice 2</label>
  63. <input type="radio" id="radio3" name="radio" /><label for="radio3">Choice 3</label>
  64. </div>
  65. </form>
  66.  
  67. <script>
  68. $(function() {
  69. $( "#radio" ).buttonset();
  70. });
  71. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement