`
zhoujiabin810812
  • 浏览: 25459 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

一天工作总结jquery使用

阅读更多
  $(document).ready(function(){
//绑定流程类型事件
      $("#sortId").change(function() {
      var sortId=$("#sortId").val();
      if(sortId==""){
      $('#submitTo1').attr("disabled","disabled");
      $('#buttonShow').hide();
   
      } else{
   
      $.ajax({
                type: "POST",
                  url: "pageButtonController.do",
             data: "method=shouButtons&sortId="+sortId,
                dataType: 'html',
                success: function(result) {
                     
                     $('#buttonShow').html(result);
                     $('#buttonShow').show();
                     $('#submitTo1').attr("disabled","");
                
                     }
             });
      }
      
           
    });
   //绑定表单提交事件  
      $("#submitTo1").click(function() {
      var system=$("#system").val();
      var sortId=$("#sortId").val();
      var taskType=$("#taskType").val();
      if(system==""){
      alert("请选择接入系统");
      return false;
      }else if(sortId==""){
      alert("请选流程类型");
      return false;
      }else if(taskType==""){
      alert("请选择签报类型");
      return false;
      }else if($("[name='buttonId'][checked]").length<1){
      alert("至少选择一个需要配置的按钮");
      return false;
      }
      });
     //跳转到新增页面
      $("#showAddOutSysOfButtons").click(function() {
      window.location.href="pageButtonController.do?method=showAddOutSysOfButtons";
      });
  })     

 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics