ferrarisp

jquery_checkbox

May 19th, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.78 KB | None | 0 0
  1. $(function (){
  2.    
  3.     $("#v_sindUf").change(function(){ // carregando os combos de cidades apos a escolha de um estado    
  4.         if($(this).val() == 0)
  5.         {
  6.             alert('Escolha um estado')
  7.         }
  8.         else
  9.         {
  10.             $("#v_sindCid").load('jqCadSind.php?tipo=a&valor=' + $(this).val());
  11.         }
  12.     });
  13.    
  14.     $("#botao").click(function(){
  15.         $("#painelX").slideToggle("slow");
  16.     });
  17.    
  18.    
  19.     $("#v_sindAt").change(function(){
  20.         alert('ok');
  21.         if ($(this).is(":checked"))
  22.         {
  23.             alert('checado')
  24.         }
  25.     });
  26.  
  27.     $("#check").on("change",function(){
  28.       if ( $(this).is(":checked")) {
  29.         alert("checado");
  30.       } else {
  31.         alert("não checado");
  32.       }
  33.     })
  34.    
  35. });
Advertisement
Add Comment
Please, Sign In to add comment