获取radio点击事件

 获取radio点击事件,不能用click(),而是用change().
$('input:radio[name="options"]').change(function(){
    	 if($(this).is(":checked")){
    		  alert($(this).attr("autocomplete"));
    	  }else{
    		  alert(0);
    	  }
      });



你可能感兴趣的:(js)