code_junkie

Radio buttons not checked in jQuery

Nov 13th, 2011
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. if ($("input").is(':checked')) {
  2.  
  3. if ($("input").not(.is(':checked'))) {
  4.  
  5. if ( ! $("input").is(':checked') )
  6.  
  7. var iz_checked = true;
  8. $('input').each(function(){
  9. iz_checked = iz_checked && $(this).is(':checked');
  10. });
  11. if ( ! iz_checked )
  12.  
  13. if ($("input").is(":not(:checked)"))
  14.  
  15. $('#communitymode').attr('checked')
  16.  
  17. $('#communitymode').is('checked')
  18.  
  19. if($('#communitymode').attr('checked')===true) {
  20. // do something
  21. }
  22.  
  23. $("input").is(":not(':checked')"))
Add Comment
Please, Sign In to add comment