Control hidden div in js

Code example
Insert picture description here

 <div class="ff" id="dis1">
             <label>验货联系人</label>
             <input type="text" name="qc.linkman" value="${(dto.qc.linkman)!''}" />
   </div>

Insert picture description here

 var deptId=0;
        $.ajax({
            url: $path + '/generalquery/qc/getDeptId',
            type: 'post',
            dataType: 'json',
            success:function(data){
            	
            	deptId=data.result.data.deptId.id;
            	if(deptId==13||deptId==16){
            		  $('#dis1').hide();
            		  
            		
            	}
            },error:function(data){
            	
            	alert("数据加载异常"+data.id);
            }
        })
Published 67 original articles · won praise 0 · Views 2735

Guess you like

Origin blog.csdn.net/weixin_44853669/article/details/105691371