Hidden rows and schedules of the oa process form

<script type="text/javascript">
jQuery(document).ready(function()
{
    
    
  //绑定值变更事件,支持所有浏览器,请不要使用 onpropertyChange 事件进行绑定。
   jQuery("#field10568").bindPropertyChange(function()
{
    
    
      var _$thisval=jQuery("#field10568").val();//可变项(选择框ID)
 if(_$thisval=="0")//当选择框的值等于0时
{
    
    
jQuery("#mx").show();//本行可见
jQuery("#kx").hide();//本行不可见
jQuery("#gx").hide();//本行不可见
}

 if(_$thisval=="1")//当选择框的值等于1时
{
    
    
jQuery("#kx").show();//本行可见
jQuery("#gx").hide();//本行不可见
 jQuery("#mx").hide();//本行不可见
}

 if(_$thisval=="2")//当选择框的值等于2时
{
    
    
 jQuery("#gx").show();//本行可见
 jQuery("#mx").hide();//本行不可见
 jQuery("#kx").hide();//本行不可见
}
if(_$thisval=="")//当选择框的值等于2时
{
    
    
 jQuery("#gx").show();//本行可见
 jQuery("#mx").show();//本行可见
 jQuery("#kx").show();//本行可见
}
});
});
</script>




jQuery(document).ready(function () {
    
    

	jQuery("#field24197").bindPropertyChange(function(){
    
    
	if (jQuery("#field24197").val()==0){
    
    
	jQuery("#field24143").hide();
        jQuery("#field24143span").hide();
            
              }else{
    
    
jQuery("#field24143").show();
jQuery("#field24143span").show();
                     }
    });

Please leave a message in the comment area and discuss together~~~

If necessary, please contact WeChat: hdygzh2019 At the same time, please explain your intention and make progress together! ! !

Guess you like

Origin blog.csdn.net/Y_6155/article/details/109018938